Docs Menu
Docs Home
/
MongoDB Cloud Manager
/ / /

Project Service Accounts

Base URL: https://cloud.mongodb.com/api/public/v1.0

Use the /groups/{PROJECT-ID}/serviceAccounts resource to view, create, assign, update, or delete Service Accounts within the specified Cloud Manager project.

To use these endpoints, grant the following roles to a Project service account or user in your Organization:

Role
Possible Action
Any role in the Project
Retrieve Project service accounts.
Create or update a Project service account, or unassign an Organization service account from a Project. Create or delete a service account secret.
Assign an Organization service account to a Project.
Method
Endpoint
Description
GET
Get all service accounts assigned to one project with ID {PROJECT-ID}.
GET
Get one service account identified with {CLIENT-ID} for the Project identified with {PROJECT-ID}.
POST
Create a service account and assign it to the Project identified with {PROJECT-ID}.
POST
Assign one existing Organization service account identified with {CLIENT-ID} to one Project with ID {PROJECT-ID}.
PATCH
Update one service account identified with {CLIENT-ID} for the Project identified with {PROJECT-ID}.
DELETE
Remove the service account identified with {CLIENT-ID} from the Project identified with {PROJECT-ID}. Note that the service account will still exist in the Organization, and any existing credentials will remain active until expired or manually revoked.
POST
Create a secret for the Project service account identified with {PROJECT-ID} and {CLIENT-ID}.
DELETE
Delete the service account secret identified with {CLIENT-ID} and {SECRET-ID}.

Back

Project Programmatic Service Account Access Lists