Dear All
When I use Curl Rest Api enable/disable user error, an error occurs. Can anyone successfully use it? Thanks
https://developer.atlassian.com/server/confluence/rest/v9213/api-group-admin-user/#api-rest-api-admin-user-username-enable-put
API returns information:
405Method Not Allowed
Welcome to Atlassian Community!
The link you provided is for Confluence 9+, but your version of Confluence supports this API:
https://docs.atlassian.com/ConfluenceServer/rest/8.9.3/#api/admin/user
The methods you're using are available in both older and newer API versions. However, as of May 2022, discussions in the Atlassian Community indicated that these REST API endpoints were not yet functional (referenced in feature requests CONFSERVER-56205 and CONFSERVER-54928):
https://community.atlassian.com/forums/Confluence-questions/ELI5-How-do-I-disable-a-user-in-Confluence-using-a-rest-API/qaq-p/2017749
Although the feature requests were marked as resolved starting from version 8.2.0, at least one user reported that it still did not work in version 8.5.16.
You may find possible workarounds in the community post and in the feature request ticket:
https://jira.atlassian.com/browse/CONFSERVER-54928
put https://{url}/confluence/rest/api/admin/user/{user}/enable
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.