Set permissions to multiple users/groups/anonymous user in the given space
Sets permissions to multiple users/groups in the given space. Request should contain all permissions that user/group/anonymous user will have in a given space. If permission is absent in the request, but was granted before, it will be revoked. If empty list of permissions passed to user/group/anonymous user, then all their existing permissions will be revoked. If user/group/anonymous user not mentioned in the request, their permissions will not be revoked.
Maximum 40 different users/groups/anonymous user could be passed in the request.
See <a href=“https://confluence.atlassian.com/display/DOC/Space+Permissions+Overview">Space Permissions documentation</a> for additional information about supported permissions.
Example request URI’s:
https://example.com/confluence/rest/api/space/TESTSPACE/permissions
/rest/api/space/{spaceKey}/permissionsspaceKeystringrequiredapplication/jsonSpacePermissionsForSubjectuserKeystringgroupNamestringoperationsOperationDescription[]Show propertiesHide properties
OperationDescriptiontargetTypestringoperationKeystringSpace permissions successfully set.
Returned if incorrect permissions are passed in request (for e.g. non existing operation or global permission).
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstringReturned if the calling User is not authenticated.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstringReturned if the calling User does not have necessary permission.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstringReturned if user or group with specified key not found.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring