Available since v. 2.0.1 New REST APIs:
Available since v. 2.1.0 New REST APIs:
Available since v. 2.2.0 New REST APIs:
Available since v. 3.1.* New REST APIs:
Available since v. 3.16.* Below REST APIs are now available to space administrators: |
Available for all users
Available for all users
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/permissionTypes
Response format: JSON
Example response:
[ "VIEWSPACE", "REMOVEOWNCONTENT", "COMMENT", "EDITSPACE", "SETSPACEPERMISSIONS", "REMOVEPAGE", "REMOVECOMMENT", "REMOVEBLOG", "CREATEATTACHMENT", "REMOVEATTACHMENT", "EDITBLOG", "EXPORTSPACE", "REMOVEMAIL", "SETPAGEPERMISSIONS" ] |
Permission Name | Value | ||
All - View |
| ||
Pages - Add |
| ||
Pages - Restrict |
| ||
Pages - Delete |
| ||
Blog - Add |
| ||
Blog - Delete |
| ||
Comments - Add |
| ||
Comments - Delete |
| ||
Attachments - Add |
| ||
Attachments - Delete |
| ||
Mail - Delete |
| ||
Space - Export |
| ||
Space - Admin |
|
Available only for Confluence Administrators
This API supports Pagination
This API supports optional parameters
Available only for Confluence Administrators
This API supports Pagination
This API supports optional parameters
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/getSpacesWithAnonymousPermissions
Parameters:
creationDateFrom - filter spaces by created date (creation date >= this date)
creationDateTo - filter spaces by created date (creation date <= this date)
dateFormat - define date format for parameters creationDateFrom, creationDateTo and for JSON output fields creationDateString, lastModificationDateString - default format ‘yyyy-MM-dd'
Example URL:
{CONFLUENCE_URL}/rest/extender/1.0/permission/space/getSpacesWithAnonymousPermissions?creationDateTo=2020-05-14
{CONFLUENCE_URL}/rest/extender/1.0/permission/space/getSpacesWithAnonymousPermissions?creationDateFrom=12/01/2019&dateFormat=MM/dd/yyyy
{CONFLUENCE_URL}/rest/extender/1.0/permission/space/getSpacesWithAnonymousPermissions?creationDateTo=03.01.2020&creationDateFrom=01.01.2020&dateFormat=MM.dd.yyyy
Response format: JSON
Example response:
{ "total": 2, "maxResults": 100, "spaces": { "SPACEA": { "creationDateString": "05-14-2020 14:53:21", "lastModificationDate": 1589460802858, "permissions": [ "VIEWSPACE" ], "lastModificationDateString": "05-14-2020 14:53:22", "creatorName": "admin", "name": "Space A", "creationDate": 1589460801648, "key": "SPACEA" }, "ds": { "creationDateString": "09-25-2018 11:05:32", "lastModificationDate": 1573637171250, "permissions": [ "VIEWSPACE", "REMOVEOWNCONTENT", "COMMENT", "EDITSPACE", "REMOVEPAGE", "REMOVECOMMENT", "REMOVEBLOG", "CREATEATTACHMENT", "REMOVEATTACHMENT", "EDITBLOG", "EXPORTSPACE", "REMOVEMAIL" ], "lastModificationDateString": "11-13-2019 10:26:11", "creatorName": "not exist", "name": "Demonstration Space", "creationDate": 1537866332331, "key": "ds" } }, "startAt": 0 } |
Available only for Confluence Administrators and Space Administrators
Available only for Confluence Administrators and Space Administrators
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/getSpacePermissionActors/{PERMISSION_TYPE}
where {SPACE_KEY} is the space key
where {PERMISSION_TYPE} is the space permission type from https://it-lab-site.atlassian.net/wiki/spaces/RAEC/pages/559743018/REST+API+-+Space+Permissions#Get-all-space-permission-types or ALL to get all space permissions
Example URL:
{CONFLUENCE_URL}/rest/extender/1.0/permission/space/DEMO/getSpacePermissionActors/ALL
{CONFLUENCE_URL}/rest/extender/1.0/permission/space/DEMO/getSpacePermissionActors/REMOVEPAGE
Response format: JSON
Example response:
{ "permissions": { "EDITSPACE": { "anonymousAccess": true, "groups": [ "confluence-users" ] }, "SETSPACEPERMISSIONS": { "anonymousAccess": false, "groups": [ "confluence-administrators" ], "users": [ "admin", "john" ] }, "REMOVEMAIL": { "anonymousAccess": true, "groups": [ "confluence-administrators", "confluence-users" ] } }, "name": "Demonstration Space", "key": "ds" } |
Available only for Confluence Administrators or Space Administrator
This API supports Pagination
Available only for Confluence Administrators or Space Administrator
This API supports Pagination
Method type: GET
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/allGroupsWithAnyPermission
where {SPACE_KEY} is the space key
Response format: JSON
Example response:
{ "total": 2, "maxResults": 1000, "groups": [ "confluence-administrators", "confluence-users" ], "startAt": 0 } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type: GET
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/group/{GROUP_NAME}/getPermissionsForSpace/space/{SPACE_KEY}
where {GROUP_NAME} is the name of the group
where {SPACE_KEY} is the space key
Response format: JSON
Example response:
{ "permissions": [ "VIEWSPACE", "REMOVEOWNCONTENT", "COMMENT", "EDITSPACE", "SETSPACEPERMISSIONS", "REMOVEPAGE", "REMOVECOMMENT" ], "name": "Demonstration Space", "key": "ds" } |
Available only for Confluence Administrators
Available only for Confluence Administrators
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/group/{GROUP_NAME}/getAllSpacesWithPermissions
where {GROUP_NAME} is the name of the group
Parameters:
spacesAsArray - change ‘spaces’ parameter in response from HashMap to Array (Available since v. 2.4.0)
This API supports Pagination
Example URL:
{CONFLUENCE_URL}/rest/extender/1.0/permission/group/{GROUP_NAME}/getAllSpacesWithPermissions?spacesAsArray=true
{CONFLUENCE_URL}/rest/extender/1.0/permission/group/{GROUP_NAME}/getAllSpacesWithPermissions?spacesAsArray=true&startAt=100
Response format: JSON
Example response:
Without spacesAsArray
{ "total": 2, "maxResults": 1111, "spaces": { "TEST": { "permissions": [ "VIEWSPACE", "COMMENT" ], "name": "Test space for Extender", "key": "TEST" }, "ds": { "permissions": [ "VIEWSPACE", "REMOVEOWNCONTENT", "COMMENT", "EDITSPACE", "SETSPACEPERMISSIONS", "REMOVEPAGE", "REMOVECOMMENT", "REMOVEBLOG", "CREATEATTACHMENT", "REMOVEATTACHMENT", "EDITBLOG", "EXPORTSPACE", "REMOVEMAIL", "SETPAGEPERMISSIONS" ], "name": "Demonstration Space", "key": "ds" } }, "startAt": 0 } |
With spacesAsArray = true
{ "total": 2, "maxResults": 1111, "spaces": [ { "permissions": [ "VIEWSPACE", "COMMENT" ], "name": "Test space for Extender", "key": "TEST" }, { "permissions": [ "VIEWSPACE", "REMOVEOWNCONTENT", "COMMENT", "EDITSPACE", "SETSPACEPERMISSIONS", "REMOVEPAGE", "REMOVECOMMENT", "REMOVEBLOG", "CREATEATTACHMENT", "REMOVEATTACHMENT", "EDITBLOG", "EXPORTSPACE", "REMOVEMAIL", "SETPAGEPERMISSIONS" ], "name": "Demonstration Space", "key": "ds" } ], "startAt": 0 } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/group/{GROUP_NAME}/manageSpacePermissions
where {GROUP_NAME} is the name of the group
where {SPACE_KEY} is the space key
Request format: JSON
Example request: Permissions to add
{ "addPermissions":[ "VIEWSPACE", "COMMENT" ], "removedPermissions":[ "REMOVEMAIL", "SETPAGEPERMISSIONS" ] } |
Response format: JSON
Example response:
{ "addedPermissions": [ "VIEWSPACE", "COMMENT" ], "removePermissions":[ "REMOVEMAIL", "SETPAGEPERMISSIONS" ] } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/group/{GROUP_NAME}/addSpacePermissions
where {GROUP_NAME} is the name of the group
where {SPACE_KEY} is the space key
Request format: JSON
Example request: Permissions to add
{ "permissions":[ "VIEWSPACE", "COMMENT" ] } |
Response format: JSON
Example response:
{ "total": 2, "added": [ "VIEWSPACE", "COMMENT" ], "skipped": [] } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/group/{GROUP_NAME}/removeAllSpacePermissions
where {GROUP_NAME} is the name of the group
where {SPACE_KEY} is the space key
Response format: JSON
Example response:
{ "total": 2, "removed": [ "VIEWSPACE", "COMMENT" ] } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/group/{GROUP_NAME}/removeSpacePermissions
where {GROUP_NAME} is the name of the group
where {SPACE_KEY} is the space key
Request format: JSON
Example request: Permissions to add
{ "permissions":[ "VIEWSPACE", "COMMENT" ] } |
Response format: JSON
Example response:
{ "total": 2, "removed": [ "VIEWSPACE", "COMMENT" ] } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type: GET
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/allUsersWithAnyPermission
where {SPACE_KEY} is the space key
Response format: JSON
Example response:
{ "total": 2, "maxResults": 1000, "users": [ "admin", "john" ], "startAt": 0 } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type: GET
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/user/{USER_NAME}/getPermissionsForSpace/space/{SPACE_KEY}
where {USER_NAME} is the user name
where {SPACE_KEY} is the space key
Response format: JSON
Example response:
{ "permissions": [ "VIEWSPACE", "REMOVEOWNCONTENT", "COMMENT", "EDITSPACE", "SETSPACEPERMISSIONS", "REMOVEPAGE", "REMOVECOMMENT" ], "name": "Demonstration Space", "key": "ds" } |
Available only for Confluence Administrators
Available only for Confluence Administrators
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/user/{USER_NAME}/getAllSpacesWithPermissions
where {USER_NAME} is the user name
Parameters:
spacesAsArray - change ‘spaces’ parameter in response from HashMap to Array (Available since v. 2.4.0)
This API supports Pagination
Example URL:
{CONFLUENCE_URL}/rest/extender/1.0/permission/user/{USER_NAME}/getAllSpacesWithPermissions?spacesAsArray=true
{CONFLUENCE_URL}/rest/extender/1.0/permission/user/{USER_NAME}/getAllSpacesWithPermissions?spacesAsArray=true&startAt=100
Response format: JSON
Example response:
Without spacesAsArray
{ "total": 2, "maxResults": 100, "spaces": { "KB": { "permissions": [ "VIEWSPACE", "SETSPACEPERMISSIONS", "EXPORTSPACE" ], "name": "knowledge base", "key": "KB" }, "TEAMSP": { "permissions": [ "VIEWSPACE", "COMMENT", "EDITSPACE", "CREATEATTACHMENT", "EDITBLOG" ], "name": "Team Space", "key": "TEAMSP" } }, "startAt": 0 } |
With spacesAsArray
{ "total": 2, "maxResults": 100, "spaces": { "KB": { "permissions": [ "VIEWSPACE", "SETSPACEPERMISSIONS", "EXPORTSPACE" ], "name": "knowledge base", "key": "KB" }, "TEAMSP": { "permissions": [ "VIEWSPACE", "COMMENT", "EDITSPACE", "CREATEATTACHMENT", "EDITBLOG" ], "name": "Team Space", "key": "TEAMSP" } }, "startAt": 0 } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/user/{USER_NAME}/manageSpacePermissions
where {USER_NAME} is the user name
where {SPACE_KEY} is the space key
Request format: JSON
Example request: Permissions to add
{ "addPermissions":[ "VIEWSPACE", "COMMENT" ], "removedPermissions":[ "REMOVEMAIL", "SETPAGEPERMISSIONS" ] } |
Response format: JSON
Example response:
{ "addedPermissions": [ "VIEWSPACE", "COMMENT" ], "removePermissions":[ "REMOVEMAIL", "SETPAGEPERMISSIONS" ] } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/user/{USER_NAME}/addSpacePermissions
where {USER_NAME} is the user name
where {SPACE_KEY} is the space key
Request format: JSON
Example request: Permissions to add
{ "permissions":[ "VIEWSPACE", "COMMENT" ] } |
Response format: JSON
Example response:
{ "total": 2, "added": [ "VIEWSPACE", "COMMENT" ], "skipped": [] } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/user/{USER_NAME}/removeAllSpacePermissions
where {USER_NAME} is the user name
where {SPACE_KEY} is the space key
Response format: JSON
Example response:
{ "total": 5, "removed": [ "VIEWSPACE", "CREATEATTACHMENT", "EDITBLOG", "COMMENT", "EDITSPACE" ] } |
Available only for Confluence Administrators or Space Administrator
Available only for Confluence Administrators or Space Administrator
Method type:
URL: {CONFLUENCE_URL}/rest/extender/1.0/permission/space/{SPACE_KEY}/user/{USER_NAME}/removeSpacePermissions
where {USER_NAME} is the user name
where {SPACE_KEY} is the space key
Request format: JSON
Example request: Permissions to add
{ "permissions":[ "VIEWSPACE", "COMMENT" ] } |
Response format: JSON
Example response:
{ "total": 2, "removed": [ "VIEWSPACE", "COMMENT" ] } |
This REST API uses pagination to improve performance for all users. Pagination is enforced for methods that could return a large collection of items. When you make a request to a paged API, the response will wrap the returned array of values in a JSON object with paging metadata, for example:
{ "startAt" : 0, "maxResults" : 10, "total": 200, "objects": [ { /* result 0 */ }, { /* result 1 */ }, { /* result 2 */ } ] } |
Where:
startAt
is the index of the first item returned in the page of results.
maxResults
is the maximum number of items that can be returned per page. Each API endpoint may have a different limit for the number of items returned, and these limits may change without notice. (default value - 100)
total
is the total number of items contained in all pages. This number may change as the client requests the subsequent pages, therefore the client should always assume that the requested page can be empty.