Hello!
Is there a way (multiple calls are fine) to get a list of all Projects a particular User has access to using the Rest API?
Thanks in advance.
Dear @Jim Quitte ,
see my pseudo code:
projects = GET /rest/api/2/project
for (<PROJECT> in projects)
res = GET /rest/api/2/user/permission/search?username=<MYUSER>&projectKey=<PROJECT>&permission=BROWSE
if (res.HTTP_CODE = 200)
echo User <MYUSER> has access to <PROJECT>
Follow this for details on api call.
So long
Thomas
{'errorMessages': ['At least one permission name must be specified'], 'errors': {}}
This is what the response says
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.