Create a service account
Create an organization-level service account in MongoDB Atlas to obtain OAuth 2.0 client credentials for the Atlas Administration API.
Sign in to MongoDB Atlas
Sign in to your MongoDB Atlas account.
- Select your organization using the Organization selector at the top left.
- In the left sidebar, expand Identity & Access and click Applications.
Open the Service Accounts tab
On the Applications page, select the Service Accounts tab.
- Click Create service account.

Enter service account information
On the Create Service Account screen, under Enter Service Account Information, complete the form.
- Name: enter a name such as
StackOne Integration(must not be more than 64 characters). - Description: enter a description of the service account — this field is required (must not be more than 250 characters).
- Choose a Client Secret Expiration period (the default is 90 days (recommended)). You can’t change this once the secret is created.
- From Organization Permissions, select the roles this integration needs — for example Organization Owner for full access, or Organization Read Only for read-only access.
- Click Create.

Copy your credentials
After the service account is created, MongoDB Atlas displays its credentials.
Copy the Client ID and Client Secret
On the Service Account Information screen, copy both values and enter them in StackOne Hub.
- Click Copy next to Client ID and enter it as the Service Account Client ID in StackOne Hub.
- Click Copy next to Client Secret and enter it as the Service Account Client Secret in StackOne Hub.
- The Client Secret is only displayed once and cannot be retrieved later — after you leave this page the full client secret is unavailable, so store it securely.

Linking the Account from the Hub
Navigate to the Hub
Fill out the fields
- Service Account Client ID
- Service Account Client Secret
Connect
- Click Connect
- If applicable, the provider will redirect you to a sign-in or authorization page. Complete the provider’s authorization flow.
- Once authorization is successful, you will see a confirmation popup
If the account linking is successful, you will see the newly linked account in your Accounts page.