If you want to get all users for a specific project you can do this (by selecting all permissions): curl 'https://SONAR_HOST/api/permissions/users?projectKey=PROJECT_KEY&permission=admin&permission=issueadmin&permission=profileadmin&permission=gateadmin&permission=portfoliocreator&permission=provisioning&permission=scan&permission=user'
But it doesn’t provide the associated groups (which include other users).
For the groups I try something like: curl 'https://SONAR_HOST/api/permissions/groups'
But I dont find a way to specify the project and like that we don’t know the mapping.
After some dummy tests:
projectKey: no filter
projectName: no filter
project: no filter
projectId: Project Id ‘xx’ not found. Interesting
projectKey and projectId: Project id or project key can be provided, not both. Interesting
So clearly we can success only if these 2 paths are documented
(Knowing why it is not provided in the API doc can be a plus ^^)
I found it
same as for the users and so groups must select all permissions to be sure to get all groups associated to the project.
Thanks! (for me we can close it )