Service account
A service account gives you access to the Cloud-IAM API with more or less restricted rights.
This means you don't have to use a nominative account for one of your organization's members.
Create a service account
Go to your organization page and click on + New service account
:
![Service account overview](/assets/service-account-overview.02b0454b.png)
Select the role this service account will have and click on New service account
:
![Create new service account](/assets/service-account-create.64353cb3.png)
Copy the Client Id and the Client Secret:
![Get service account credentials](/assets/service-account-credentials.bf9414b6.png)
Copy the Client Secret
Remember to copy this Client Secret, as it will no longer be possible to display it afterwards.
We also provide a curl command to use your service account with our api:
curl https://iam.cloud-iam.com/auth/realms/cloud-iam/protocol/openid-connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=sa_[...]" \
-d "client_secret=[...]"
curl https://iam.cloud-iam.com/auth/realms/cloud-iam/protocol/openid-connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=sa_[...]" \
-d "client_secret=[...]"
Next, click on Back to organization
.
Delete a service account
Go to your organization page and click on delete icon:
![Delete a service account](/assets/service-account-delete.29f262f4.png)
Quota of service account by organization
Service accounts have a quota of 4
per organization:
![Service account quota reached for an organization](/assets/service-account-quota-reached.640bd6a7.png)
If you need more service accounts, please contact us at support@cloud-iam.com.