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/permission
body
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Marc - Devoteam ,
In confluence cloud there is any api to give multiple space permission to user in one shot.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Nikola Perisic
But while I am trying to use "/wiki/rest/api/space/{spaceKey}/permission" then I am getting below error:
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.