This page describes the initial setup steps for using TrustLogin as the source of identity
to perform Identity Provisioning to MongoDB.
Note: For detailed instructions on operating MongoDB, please refer to the manual provided by MongoDB.
| Item | Details | |
| Pre-check |
|
|
| Setup Flow / Manual |
Note: After connecting TrustLogin and MongoDB using the steps on this page, |
|
| Provisioning Target | 〇 | Supports user provisioning |
| 〇 | Supports group provisioning | |
| SAML Authentication Setup Manual |
|
|
| Notes |
|
|
Setup Steps
MongoDB Settings
- Log in to MongoDB with administrator privileges.
Click "Application" from the MongoDB icon.
- Click "Add New > Service Account".
-
On the service account creation screen, configure the following settings, then click "Create".
Name Set any name of your choice Description Set any description of your choice Client Secret Expiration Select any token expiration period of your choice Organization Permissions Select the following:
- Organization Owner
- Organization Member
- Organization Billing Admin
- Organization Project Creator
-
Make a copy of the values that are displayed. (These will be used in the TrustLogin settings.)
The token cannot be displayed again. Please make sure not to miss copying it.- Client ID
- Client Secret
- Click "Organization Settings" at the bottom left of the screen, and copy the "Organization ID" that is displayed.
This completes the preparation on the MongoDB side. Next, configure the settings on the TrustLogin side.
TrustLogin Settings
Log in to the TrustLogin Admin Page, and from the "Admin Page > Settings > Optional Features" menu,
open "Settings" to the right of "Identity Provisioning".
- Click "Add Service".
- On the Add Service screen, search for and select "MongoDB", then click the "Add" button.
- You will be redirected to the "Identity Provisioning > MongoDB" page.
Click the "Edit" button.
-
Open "Access Settings", enter the following values for the settings items, and click "Save".
Organization ID MongoDB Settings The value of "Organization ID" you copied in Step 5 Client ID MongoDB Settings The value of "Client ID" you copied in Step 4 Client Secret MongoDB Settings The value of "Client Secret" you copied in Step 4
-
Click the "Connect" button in the upper right of the screen.
Once the button status updates to "Connected", the initial setup is complete.
Next step: The manual for configuring user synchronization is available here
Values You Can Configure in Attribute Mapping
The values that can be specified as default functions for MongoDB are as follows.
| Value | Description |
| Full Name | This is the full name with the surname first. |
| Full Name with Given Name First | This is the full name with the given name first. |
| Username from Email | Retrieves the part of the email before the "@" and limits it to a maximum of 21 characters. |
| Username from Email (Special Characters Removed) |
Generates a username from the user’s email address. Extracts the local part and removes invalid characters (only letters, digits, and underscores (_) are allowed). |
Note: For an overview and configuration instructions for the attribute mapping feature, please see here.