Hierarchy

  • CommonHttpService
    • ContentPermissionsService

Constructors

  • Internal

    Create a new instance of the service.

    Parameters

    • getClientInstance: (() => CommonHttpClient)
        • (): CommonHttpClient
        • Returns CommonHttpClient

    Returns ContentPermissionsService

Methods

  • Check if a user or a group can perform an operation to the specified content. The operation to check must be provided. The user’s account ID or the ID of the group can be provided in the subject to check permissions against a specified user or group. The following permission checks are done to make sure that the user or group has the proper access:

    • site permissions
    • space permissions
    • content restrictions

    Permissions required: Permission to access the Confluence site ('Can use' global permission) if checking permission for self, otherwise 'Confluence Administrator' global permission is required.

    Parameters

    Returns Promise<PermissionCheckResponse>

    Returned if the permission check completed successfully

    POST /wiki/rest/api/content/{id}/permission/check @scopes-current read:confluence-content.permission @scopes-beta read:content.permission:confluence

  • Method to initialize the class. Normally used to set up validation rules.

    Returns void