HI, I want to add user to group by this rest api?
PUT /rest/api/user/{username}/group/{groupName}
put xxx/rest/api/user/test1/group/lead1
However, it shows 404 error.
for uri: xxx/rest/api/user/test1/group/lead1/</message>
Can you give me an example for this api?
This document has not detail information.
Thanks.
REST API for managing {@link User} to {@link Group} membership.
PUT /rest/api/user/{username}/group/{groupName}
Add the given {@link User} identified by username to the given {@link Group} identified by groupName. This method is idempotent i.e. if the membership already exists then no action will be taken.
Hi @志华 西西
Which Confluence version do you use?
The link you shared belongs to 8.4.0 version. However, that method doesn't exist in 7.4.8.
Check 7.4.8 Rest Api page: https://docs.atlassian.com/ConfluenceServer/rest/7.4.8/
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.