As a Sonarcloud administrator.
Do I want to add members using a web api using an application front end
so that the manual user addition can be reduced
I do not see to find a solution where I thought of using the api/user_groups/add_user POST method.
Please share an alternative
Hey there.
What exactly are you trying to do? Add users to your organization? A group? A project? It’s not clear to me.
Hi Colin
I am trying to automate the process via a API request to add users to our organization.
We currently have a web front where access is requested which we want to automate without needing human intervention.
In that case I think you’re looking for a combination of (internal) Web API POST api/organizations/add_member and GET users/users.
This is a pretty helpful guide:
You should also know that recently we announced the SonarCloud Enterprise Plan, which includes SAML SSO and the ability to invite users to the org by e-mail address.
Thanks Colin
I do however not see the api -
POST api/organizations/add_member
Where would I see which parameters are needed apart from what one would see standard when adding members manually via email?
It’s an internal API, so the docs aren’t public. That’s why I pointed you to this guide:
Thanks for your assistance.
Question though on the format of the URL relating to the api.
What is the reason on the api not being in the same URL structure between the GET and POST?
GET - https://api.sonarcloud - for users/users
POST - SonarCloud - for organizations/add_member…
https://api.sonarcloud.io
is the home of our future-state (v2) API, of which /users/users
is one of them.