Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Use Rest Api enable/disable user error

Benson Wu _吴 延鹏_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2026

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

<body>
<h1>HTTP Status 405 – Method Not Allowed</h1>
<hr class="line" />
<p><b>Type</b> Status Report</p>
<p><b>Description</b> The method received in the request-line is known by the origin server but not supported by the
target resource.</p>
<hr class="line" />
<h3>Apache Tomcat/9.0.109</h3>
</body>

2 answers

1 vote
Evgenii
Community Champion
January 10, 2026

Hi, @Benson Wu _吴 延鹏_ 

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

0 votes
Benson Wu _吴 延鹏_
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 10, 2026

put https://{url}/confluence/rest/api/admin/user/{user}/enable

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
Confluence8.5.27
TAGS
AUG Leaders

Atlassian Community Events