Onboard a partner company
This guide shows how to onboard a partner company: you create its unit and its first administrator, and you hand the administration of its users over to that person. At the end, the administrator of the partner company can log in and add the other people of the company.
The steps use the administration interface in the management console. For the same task over the REST API, see Use the REST API instead.
For the model behind these steps, see B2B organization structures.
Before you start
- You are a tenant administrator, with the role ClientRoot.
- You decided where the partner company sits in the unit tree. For the options, see Where does a partner company sit in the unit tree?
- The parent unit exists.
- The first administrator is not yet a user in the tenant. A person who is already a user gets a second profile, in the unit of the partner company, and no second user: open the user, and click New in the section Profiles in place of step 3. For more information, see Users, profiles, and credentials.
Units and users belong to one environment. A partner company that you create in TEST does not exist in LIVE.
This guide uses the following example. Ingrid, the tenant administrator of Silvretta Insurance, onboards the repair partner Garage Keller AG. Karl Keller becomes its administrator.
| Object | Name | Display name |
|---|---|---|
| Tenant | Default | |
| Parent unit | Motor-Claims | Motor Claims |
| Unit of the company | Garage-Keller-AG | Garage Keller AG |
| First administrator | karl | Karl Keller |
Names contain no spaces. The interface shows the name next to the display name, for example "Garage-Keller-AG - Garage Keller AG". The interface calls a tenant a client.
Step 1: Open the administration interface
- Log in to the management console.
- In the header, select the environment that you want to change.
- Click User management in the left sidebar.
- Click Advanced settings.
Result: The administration interface of the selected environment opens inside the console, on the page Search user.
Step 2: Create the unit of the partner company
- In the left menu, under Units, click Search and modify unit.
- Enter
Motor-Claimsin Search criteria and click Search. - Click the unit Motor-Claims in the tree. The page Manage unit opens.
- In the section Subunits, click New. The page Add unit opens, with the tenant and the parent unit filled in.
- Enter
Garage-Keller-AGin Unit name andGarage Keller AGin Display name (EN). - Leave Profiles can be assigned ticked, so that the unit can hold people.
- Click Save.
Result: The page Manage unit of the new unit opens with the message "The data is saved." The field Hierarchic name shows the path "Silvretta Insurance >> Claims >> Motor Claims >> Garage Keller AG".
The page Add unit before saving:
The new unit after saving:
Step 3: Create the first administrator in the unit
- In the left menu, under Users, click Create user. The page New user opens.
- Enter
karlin Login ID, and fill in Last name, First name, and Email. - Click the pencil icon next to Unit. The page Unit search opens.
- Select Display name in the list next to Search criteria, enter
Garage Keller AG, and click Search. - Click the unit Garage-Keller-AG in the tree. The form returns with the message "A new unit is selected successfully."
- Click Save.
Result: The page User administration of Karl opens with the message "The new user is created." The section Profiles lists one profile, Profile-karl.
Unit is filled in before you change it, with the default unit of the tenant. If you save without item 3 to 5, the profile is created in the default unit and not in the unit of the partner company.
The whole step as a recording with narration (under 1 minute):
Transcript of the recording
| Time | Narration |
|---|---|
| 00:00 | Ingrid is the tenant administrator. She creates the first administrator of the partner company Garage Keller AG. In the menu, under Users, she clicks Create user. The page New user opens. |
| 00:03 | She enters the login ID, the last name, the first name, and the email address of Karl Keller. |
| 00:20 | Now look at the field Unit. It is already filled in, with the default unit of the tenant. If nothing is changed, the profile of the new user lands there, and not in the unit of the partner company. |
| 00:21 | To change the unit, she clicks the pencil icon next to the field. The page Unit search opens. |
| 00:23 | The search looks for the unit name, and she knows the display name. So she selects Display name in the list, enters Garage Keller AG, and clicks Search. |
| 00:28 | The tree opens down to the unit. She clicks Garage-Keller-AG. |
| 00:28 | The form returns, with the message that a new unit is selected. What she entered before is still there, so nothing has to be typed again. |
| 00:30 | She clicks Save. The page User administration opens, with the message that the new user is created. Under Profiles, the user has one profile. It is in the unit of the partner company, and this is what makes Karl a member of Garage Keller AG. |
The new user after saving:
Step 4: Set an initial password
- On the page User administration of Karl, in the section User credentials, click New. The page Credential opens, with Type set to Password and Status set to Initial.
- Enter a password in New value and again in Confirmation.
- Click Save. The page Credential stays open and shows the message "The data is saved."
- Click Karl Keller (karl) in the line Data hierarchy at the top of the page. The page User administration of Karl opens.
- Send the login ID and the initial password to Karl over two separate channels.
Result: The section User credentials of Karl lists one credential of the type Password with the status Initial.
The password of Karl in the section User credentials:
To invite the person with a link that expires, in place of an initial password, see Registration, Onboarding, and Identity Verification.
Step 5: Make the user the administrator of the unit
Follow Set up a delegated administrator from step 2. Karl receives three administrator roles, each limited to the unit Garage-Keller-AG: one for the users, one for the roles of an application, and one for an enterprise role.
Result: The page Profile administration of Karl lists the administrator roles in IDM roles.
Check the result
- Log out, and log in to the management console as Karl with the initial password.
- Open User management > Advanced settings.
- In the left menu, under Users, click Create user. The page New user opens.
- Click the pencil icon next to Unit, select Display name, enter
Garage Keller AG, and click Search.
Result:
| Item | Karl sees | This confirms |
|---|---|---|
| 2 | The administration interface, and not the self-administration | The administrator roles are in force |
| 4 | The path down to Garage-Keller-AG. The units above it are grey and cannot be selected. No other partner company is listed | Karl adds people to his company only |
The check as a recording with narration (under 1 minutes):
Transcript of the recording
| Time | Narration |
|---|---|
| 00:00 | Karl logs in, and the administration interface opens, not the self-administration. This is so because Karl holds administrator roles. Without them, he would see only his own user data. |
| 00:01 | In the menu, under Users, Karl clicks Create user. From here, he adds the people of his company. |
| 00:02 | For Karl, the field Unit is empty. He clicks the pencil icon next to it to choose the unit. |
| 00:05 | He selects Display name, enters Garage Keller AG, and clicks Search. |
| 00:05 | The search shows the path down to his company. The units above it are grey. Karl sees where his company sits, but he cannot select them. No other partner company is listed. This is the scope of his administrator roles. |
| 00:10 | He clicks Garage-Keller-AG, and the unit is selected. Every user that Karl creates gets a profile in the unit of his company. |
Karl now adds the other people of Garage Keller AG himself, each with a profile in the unit, and assigns the roles that Silvretta Insurance allows. To load many users at once or from another system, see Integration, APIs, and Provisioning.
Use the REST API instead
Three calls replace steps 2 to 4, and one call reads the unit back.
-
Create the unit below the parent unit:
curl -i -X POST "https://<instance>/nevisidm/api/core/v1/<clientExtId>/units" \-H "Authorization: Bearer <token>" \-H "Content-Type: application/json" \-d '{"parentUnitExtId": "<extId of the unit Motor-Claims>","name": "Garage-Keller-AG","displayName": {"EN": "Garage Keller AG"},"profileless": false}'Result: Status 201 without a body. The external ID of the new unit is the last part of the
Locationheader. For all fields, see Create a unit. -
Read the unit and check that
parentUnitExtIdis the parent unit that you sent:curl -X GET "https://<instance>/nevisidm/api/core/v1/<clientExtId>/units/<unitExtId>" \-H "Authorization: Bearer <token>"Result: Status 200. For more information, see Get a unit by external ID.
-
Create the user with a profile in the unit:
curl -X POST "https://<instance>/nevisidm/api/scim/v1/<clientExtId>/Users" \-H "Authorization: Bearer <token>" \-H "Content-Type: application/scim+json" \-d '{"schemas": ["urn:ietf:params:scim:schemas:core:2.0:User","urn:nevis:idm:scim:schemas:v1:extension:User"],"userName": "karl","name": {"givenName": "Karl", "familyName": "Keller"},"active": true,"preferredLanguage": "en","emails": [{"value": "[email protected]", "primary": true, "type": "work"}],"urn:nevis:idm:scim:schemas:v1:extension:User": {"templateCollectionName": "Default","profiles": [{"unitExtId": "<unitExtId>","defaultProfile": true,"state": "ACTIVE"}]}}'Result: Status 200. The response contains the user, with the
idof the user and one profile in the unit. For all fields, see Create user.The same call can carry the administrator roles of step 5, as
idmAuthorizationsof the profile. For the fields of a role and its scope, see Use the REST API instead in the other guide. -
Set the initial password:
curl -X POST "https://<instance>/nevisidm/api/core/v1/<clientExtId>/users/<userExtId>/password" \-H "Authorization: Bearer <token>" \-H "Content-Type: application/json" \-d '{"password": "<initial password>"}'Result: Status 201 without a body. The password has the state "initial", which a
GETon the same path shows. For all fields, see Create a password credential.
If something does not work
| What you see | Likely cause | What to do |
|---|---|---|
| In the unit search, a dialog says "No unit found" | The criterion is Unit name, and you entered the display name | Select Display name, or enter the unit name |
Over the API, the name of the unit is refused with errors.identifierPolicyViolated | The name contains a space | Use a name without spaces, and put the readable name in the display name |
| Over the API, the unit is created and has no parent | The external ID of the parent unit does not exist | Move the unit below the parent unit. See Move a unit under a new parent |
| The profile of the new user is in the default unit | The unit was not changed on the page New user, or the API call had no profile | Open the profile, click the pencil icon next to Unit, select the unit of the partner company, and click Save. Over the API, see Change the unit of a profile |
| Over the API, creating the user is refused: "invalid template collection" | templateCollectionName is missing | Send templateCollectionName in the extension |
| The password is refused, and the page lists rules | The password does not meet the password policy of the tenant | Enter a password that meets the listed rules |
| After the login of Karl, the self-administration opens | Karl holds no administrator role yet | Perform step 5 |
Related content
- B2B organization structures: where a partner company sits, and who administers what
- Set up a delegated administrator: the administrator roles of step 5
- Units and the organizational hierarchy: units, subunits, and what they inherit
- Users, profiles, and credentials: why the user gets a profile in the unit of the company
- Registration, Onboarding, and Identity Verification: invitation by a link that expires