Hi All,I am trying to add the user into confluence cloud space and want to give some space permission to that user via Rest Api. But getting below error. Can anyone help me on the same.API : https://{Site - URL}/wiki/rest/api/space/TESTDIP/permissionbody
Hi @d_b_kumar_chauhan
You API call should contain target "space".
If a user doesn't have permission on space, you can't gran rights to a page?
The page target is only for pages that have restrictions set.
Hello @d_b_kumar_chauhan ,
You cannot add the user with API to Confluence space since there is no endpoint for this. As for adding the space permissions to them you can use this endpoint: /wiki/rest/api/space/{spaceKey}/permission
Thanks @Nikola PerisicBut while I am trying to use "/wiki/rest/api/space/{spaceKey}/permission" then I am getting below error:
Thanks @Marc -Devoteam- ,Its working now. Thanks, lot
Hi @Marc -Devoteam- ,In confluence cloud there is any api to give multiple space permission to user in one shot.
HI @d_b_kumar_chauhan
No the API call is baed on a single space.
You could built a script using a list where you would specify the space id's and have the script to do multiple API calls based on the space id's in the list
It looks like you're new here. Sign in or register to get started.