Revoke space permissions from a user
Revoke permissions from a user in the given space. If user doesn’t have permissions that we are trying to revoke, those permissions will be silently skipped. Multiple permissions could be passed in one request. Supported targetType and operationKey pairs:
- space read
- space administer
- space export
- space restrict
- space delete_own
- space delete_mail
- page create
- page delete
- blogpost create
- blogpost delete
- comment create
- comment delete
- attachment create
- attachment delete
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/user/4028ae289154667d0191546bd5840000/revoke
/rest/api/space/{spaceKey}/permissions/user/{userKey}/revokespaceKeystringrequireduserKeystringrequiredapplication/jsonOperationDescriptiontargetTypestringoperationKeystringSpace permissions successfully removed for a user.
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 with specified key not found.
statusCodeinteger<int32>dataValidationResultShow propertiesHide properties
authorizedbooleanvalidbooleanerrorsobjectsuccessfulbooleanallowedInReadOnlyModebooleanmessagestringreasonstring