Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

Available since v. 2.23.0

Table of Contents

...

Get all global permissions

Available for Confluence Administrators

This API supports Pagination

...

Code Block
languageactionscript3
{
    "total": 3,
    "permissions": [
        {
            "permissionType": "USECONFLUENCE",
            "groupName": "confluence-administrators",
            "isGroupPermission": true,
            "isAnonymousPermission": false,
            "isUserPermission": false
        },
        {
            "permissionType": "USECONFLUENCE",
            "isGroupPermission": false,
            "isAnonymousPermission": false,
            "userName": "admin",
            "isUserPermission": true
        },
        {
            "permissionType": "VIEWUSERPROFILES",
            "isGroupPermission": false,
            "isAnonymousPermission": true,
            "isUserPermission": false
        }
    ],
    "maxResults": 100,
    "startAt": 0
}

...

Get all global permissions (Groups)

Available for Confluence Administrators

...

Code Block
languageactionscript3
{
    "total": 2,
    "permissions": [
        {
            "permissionType": "USECONFLUENCE",
            "groupName": "confluence-administrators"
        },
        {
            "permissionType": "PERSONALSPACE",
            "groupName": "confluence-users"
        }
    ],
    "maxResults": 100,
    "startAt": 0
}

...

Get all global permissions (Users)

Available for Confluence Administrators

...

Code Block
languageactionscript3
{
    "total": 2,
    "permissions": [
        {
            "permissionType": "SYSTEMADMINISTRATOR",
            "userName": "admin"
        },
        {
            "permissionType": "USECONFLUENCE",
            "userName": "user"
        }
    ],
    "maxResults": 100,
    "startAt": 0
}

...

Add user to global permissions

Available only for Confluence Administrators

...

Example request: {CONFLUENCE_URL}/rest/extender/1.0/permission/global/user/johnny.bravo/permission/USECONFLUENCE/addGlobalPermission

...

Add group to global permissions

Available only for Confluence Administrators

...

Example request: {CONFLUENCE_URL}/rest/extender/1.0/permission/global/group/my_new_group/permission/SYSTEMADMINISTRATOR/addGlobalPermission

...

Remove user global permission

Available only for Confluence Administrators

...

Example request: {CONFLUENCE_URL}/rest/extender/1.0/permission/global/group/johnny.bravo/permission/USECONFLUENCE/removeGlobalPermission

...

Remove group global permission

Available only for Confluence Administrators

...

Example request: {CONFLUENCE_URL}/rest/extender/1.0/permission/global/group/my_new_group/permission/SYSTEMADMINISTRATOR/removeGlobalPermission

...

Get all global permission types

Available for Confluence Administrators

...