Skip to main content

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.

ObjectNameDisplay name
TenantDefault
Parent unitMotor-ClaimsMotor Claims
Unit of the companyGarage-Keller-AGGarage Keller AG
First administratorkarlKarl 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​

  1. Log in to the management console.
  2. In the header, select the environment that you want to change.
  3. Click User management in the left sidebar.
  4. Click Advanced settings.

Result: The administration interface of the selected environment opens inside the console, on the page Search user.

Search user

Step 2: Create the unit of the partner company​

  1. In the left menu, under Units, click Search and modify unit.
  2. Enter Motor-Claims in Search criteria and click Search.
  3. Click the unit Motor-Claims in the tree. The page Manage unit opens.
  4. In the section Subunits, click New. The page Add unit opens, with the tenant and the parent unit filled in.
  5. Enter Garage-Keller-AG in Unit name and Garage Keller AG in Display name (EN).
  6. Leave Profiles can be assigned ticked, so that the unit can hold people.
  7. 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 page Add unit. Unit name reads Garage-Keller-AG and Display name (EN) reads Garage Keller AG. Client shows Default and Parent unit shows Motor Claims; both cannot be changed. Profiles can be assigned is ticked.

The new unit after saving:

The page Manage unit with the message The data is saved. Hierarchic name reads Silvretta Insurance >> Claims >> Motor Claims >> Garage Keller AG.

Step 3: Create the first administrator in the unit​

  1. In the left menu, under Users, click Create user. The page New user opens.
  2. Enter karl in Login ID, and fill in Last name, First name, and Email.
  3. Click the pencil icon next to Unit. The page Unit search opens.
  4. Select Display name in the list next to Search criteria, enter Garage Keller AG, and click Search.
  5. Click the unit Garage-Keller-AG in the tree. The form returns with the message "A new unit is selected successfully."
  6. 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.

caution

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
TimeNarration
00:00Ingrid 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:03She enters the login ID, the last name, the first name, and the email address of Karl Keller.
00:20Now 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:21To change the unit, she clicks the pencil icon next to the field. The page Unit search opens.
00:23The 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:28The tree opens down to the unit. She clicks Garage-Keller-AG.
00:28The 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:30She 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:

The page User administration of Karl Keller with the message The new user is created. The section User credentials reads No credential registered. The section Profiles lists one profile, Profile-karl, with the status Active.

Step 4: Set an initial password​

  1. 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.
  2. Enter a password in New value and again in Confirmation.
  3. Click Save. The page Credential stays open and shows the message "The data is saved."
  4. Click Karl Keller (karl) in the line Data hierarchy at the top of the page. The page User administration of Karl opens.
  5. 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:

The sections User credentials and Profiles of the page User administration. User credentials lists one row of the type Password with a masked value and the status Initial.

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​

  1. Log out, and log in to the management console as Karl with the initial password.
  2. Open User management > Advanced settings.
  3. In the left menu, under Users, click Create user. The page New user opens.
  4. Click the pencil icon next to Unit, select Display name, enter Garage Keller AG, and click Search.

Result:

ItemKarl seesThis confirms
2The administration interface, and not the self-administrationThe administrator roles are in force
4The path down to Garage-Keller-AG. The units above it are grey and cannot be selected. No other partner company is listedKarl adds people to his company only

The check as a recording with narration (under 1 minutes):

Transcript of the recording
TimeNarration
00:00Karl 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:01In the menu, under Users, Karl clicks Create user. From here, he adds the people of his company.
00:02For Karl, the field Unit is empty. He clicks the pencil icon next to it to choose the unit.
00:05He selects Display name, enters Garage Keller AG, and clicks Search.
00:05The 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:10He 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.

  1. 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 Location header. For all fields, see Create a unit.

  2. Read the unit and check that parentUnitExtId is 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.

  3. 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 id of 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 idmAuthorizations of the profile. For the fields of a role and its scope, see Use the REST API instead in the other guide.

  4. 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 GET on the same path shows. For all fields, see Create a password credential.

If something does not work​

What you seeLikely causeWhat to do
In the unit search, a dialog says "No unit found"The criterion is Unit name, and you entered the display nameSelect Display name, or enter the unit name
Over the API, the name of the unit is refused with errors.identifierPolicyViolatedThe name contains a spaceUse a name without spaces, and put the readable name in the display name
Over the API, the unit is created and has no parentThe external ID of the parent unit does not existMove the unit below the parent unit. See Move a unit under a new parent
The profile of the new user is in the default unitThe unit was not changed on the page New user, or the API call had no profileOpen 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 missingSend templateCollectionName in the extension
The password is refused, and the page lists rulesThe password does not meet the password policy of the tenantEnter a password that meets the listed rules
After the login of Karl, the self-administration opensKarl holds no administrator role yetPerform step 5