Forums

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

API for fetch user and permission for space is not working

Akanshi Kumari February 6, 2024

I am trying to fetch all users of confluence data center  using endpoint `http://10.50.4.74:8090/rest/api/latest/user/search?username=''&startAt=0&maxResults=1000` but getting 404 not found error with response:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<status>
    <status-code>404</status-code>
    <message>null for uri: http://10.50.4.74:8090/rest/api/user/search?username=&amp;atart=0&amp;limit=25</message>
</status>
Also I tried to fetch space permission but getting same error. what is the issue here? As I am using correct endpoint.

 

1 answer

1 accepted

0 votes
Answer accepted
Radek Dostál
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 6, 2024 edited

See here: https://docs.atlassian.com/ConfluenceServer/rest/8.4.0/#api/user-getUser

404 - Returned if a user with the given username or userkey does not exist

 

Likely what you're after is this, /rest/api/user/list - https://docs.atlassian.com/ConfluenceServer/rest/8.4.0/#api/user-getUsers

 

For space perms, I don't want to ask which endpoint you're trying, but it shouldn't/doesn't exist, they've never made a proper space permissions crud interface - https://jira.atlassian.com/browse/CONFSERVER-78176

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events