Want to see in space level who all have what kind of access and on page level who all have what kind of access through rest api call
Hi @[deleted]
You can find everything in Confluence rest api docs:
- space perm - https://developer.atlassian.com/cloud/confluence/rest/v2/api-group-space-permissions/#api-spaces-id-permissions-get
- page restrictions - https://developer.atlassian.com/cloud/confluence/rest/v1/api-group-content-restrictions/#api-group-content-restrictions
Regards,
Seba
looking for endpoint , by hitting can I get a space level access information like which user has what permission on space level and which user has what all permission on page level , need to maintain this metadata , through rest api I am building this solution , have tried this all endpoint
#url = f'https://api.atlassian.com/ex/confluence/cloudid/rest/api/content/{page_id}'#url = f'https://api.atlassian.com/ex/confluence/cloudid/rest/api/content/{page_id}/restriction/byOperation'#url = f'https://api.atlassian.com/ex/confluence/cloudid/rest/api/user'#url = f'https://api.atlassian.com/ex/confluence/cloudid/rest/api/space/freshworks?expand=permissions'#url = f'https://api.atlassian.com/ex/confluence/cloudid/rest/api/content/{page_id}?expand=permissions'#url = f'https://api.atlassian.com/ex/confluence/cloudid/rest/api/content/{page_id}/permission/check'
Thanks Seba , will check this and get back to you on this
{'results': [{'operation': 'read', 'restrictions': {'user': {'results': [], 'start': 0, 'limit': 100, 'size': 0}, 'group': {'results': [], 'start': 0, 'limit': 100, 'size': 0}}
getting empty list in results , what do we need to do here
It looks like you're new here. Sign in or register to get started.