Skip to main content

Set up a delegated administrator

This guide shows how a tenant administrator gives another person the administration of one unit, with a fixed catalog to assign from. At the end, the new administrator manages the users of that unit and its subunits. The administrator assigns the roles of one application and one enterprise role, and nothing else.

The new administrator receives three administrator roles, one for each part of the task. Each role has a scope of its own, so you add the unit to each of them.

Karl Keller receives three administrator roles. UserAndUnitAdmin lets him manage users and subunits and is limited to the unit Garage Keller AG. AppOwner lets him assign the roles of an application and is limited to the unit Garage Keller AG and the application Claims Desk. EnterpriseRoleOwner lets him assign an enterprise role and is limited to the unit Garage Keller AG and the enterprise role Repair Partner. Each role has a scope of its own, and every role needs the unit.

The steps use the administration interface in the management console. For the same task in three API calls, see Use the REST API instead.

For the model behind these steps, see Delegated administration.

Before you start​

  • You are a tenant administrator, with the role ClientRoot.
  • The unit, the users, the applications, and the enterprise roles of the example exist.

This guide uses the following example. Ingrid, the tenant administrator of Silvretta Insurance, makes Karl the administrator of the partner company Garage Keller AG.

ObjectNameDisplay name
TenantAdmin
Unit to administerGarage-Keller-AGGarage Keller AG
Future administratorkarlKarl Keller
User of the unitelenaElena Rossi
Application in the catalogClaims-DeskClaims Desk
Enterprise role in the catalogRepair-PartnerRepair Partner
Application outside itPolicy-PortalPolicy Portal
Enterprise role outside itBrokerBroker
User outside the unitjonasJonas Brandt

Names contain no spaces. The interface shows the name next to the display name, for example "Garage-Keller-AG - Garage Keller AG".

The administration interface uses its own words:

In the interfaceMeaning
IDM roleAdministrator role
Data roomScope of an administrator role
AuthorizationA role that is assigned to a profile
ClientTenant
restrictedThe scope is limited in this dimension. It can also name nothing
globalThe scope is unlimited in this dimension

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.

Nevis ID Advanced Settings Search User
caution

Changes in the administration interface are saved to the selected environment at once. Check the environment in the header before you continue.

Step 2: Open the profile of the future administrator​

  1. In the left menu, under Users, click Search and modify user.
  2. Enter karl* in Login ID and click Search.
  3. In the table Users, click the login ID of Karl. The page User administration opens.
  4. In the section Profiles, click the name of the profile.

Result: The page Profile administration shows the unit of the profile in Unit, and the sections IDM roles, Enterprise roles, and Roles. A new profile holds one role, SelfAdmin.

The profile of Karl before the change:

The page Profile administration of Karl. The field Unit reads Garage-Keller-AG - Garage Keller AG. The table IDM roles has one row, SelfAdmin, with the button Add IDM role below it. The sections Enterprise roles and Roles are empty.

Step 3: Add the first administrator role and limit it to the unit​

  1. On the page Profile administration, in the section IDM roles, click Add IDM role.

  2. In the list Role, select UserAndUnitAdmin.

    The role is assigned at once, without a save. The page Modify data room of role opens with the reminder "Remember to assign the necessary data room restrictions to the authorization."

  3. In the section Authorized for the following units, click Add units.

  4. In the list next to Search criteria, select Display name. Enter Garage Keller AG and click Search.

  5. Click the unit name Garage-Keller-AG in the tree. The unit is added at once.

Result: The page Modify data room of role shows the message "The data is saved." The section Authorized for the following units lists the unit with its path, and the section Authorized for the following clients lists the tenant.

The whole step as a recording with narration (1 minute):

Transcript of the recording
TimeNarration
00:00Now let Karl manage the users of the unit. Under IDM roles, click Add IDM role.
00:02In the list Role, select UserAndUnitAdmin. The role is assigned as soon as you select it.
00:03The page for the scope of the role opens. The product calls the scope a data room. A message reminds you to limit the role. So far it names the tenant, and no unit.
00:15Click Add units. In the unit search, select Display name, enter Garage Keller AG, and click Search.
00:24The tree opens at the unit. Click its name.
00:25The unit is added and saved at once. The role now covers Garage Keller AG and every unit below it.
00:28Return to the profile. The role table lists the new role. Note that "restricted" only means not unlimited. To see the unit, open the role.

Step 4: Add the other two roles the same way​

Go back to the page Profile administration of Karl and repeat step 3 for each row of the table. After the unit, add the second object: click the button, search, and click the name in the result table.

In the list Role, selectAfter the unit, clickSearch inEnterClick the name
AppOwnerAdd applicationsDisplay nameClaims DeskClaims-Desk
EnterpriseRoleOwnerAdd enterprise rolesEnterprise role nameRepair-PartnerRepair-Partner
caution

Add the unit to each of the two roles. A role without the unit gives the administrator nothing, and the interface does not warn you.

Result: For each role, the page Modify data room of role shows the message "The data is saved." and lists the unit and the second object. The page Profile administration of Karl lists four roles in IDM roles: AppOwner, EnterpriseRoleOwner, SelfAdmin, and UserAndUnitAdmin.

The scope of the role AppOwner, with the unit and the application:

The page Modify data room of role for AppOwner. The tenant Default, the unit Garage-Keller-AG, and the application Claims-Desk are listed in their sections. No enterprise role is listed.

The scope of the role EnterpriseRoleOwner, with the unit and the enterprise role:

The page Modify data room of role for EnterpriseRoleOwner. The tenant Default, the unit Garage-Keller-AG, and the enterprise role Repair-Partner are listed in their sections. The section for applications reads Authorized for all applications.

The profile of Karl with the three administrator roles:

The page Profile administration of Karl after step 4. The table IDM roles has four rows: AppOwner, EnterpriseRoleOwner, SelfAdmin, and UserAndUnitAdmin. Every data room column reads restricted, except the application data room of EnterpriseRoleOwner, which reads global.

To see the objects in the scope of a role later, click the role name in the table IDM roles.

Check the result​

Check as Karl, in a new login. The interface lists users and enterprise roles outside the scope of Karl as plain text. Karl can use only the entries that are links.

  1. Log out, and log in to the management console as Karl. If the login offers several profiles, select the profile that holds the administrator roles.
  2. Open User management > Advanced settings.
  3. Click Search and modify user, search for elena, and click the login ID. Change a field, for example Remarks, and click Save.
  4. Click Search and modify user and search for jonas.
  5. Open Elena again and click the name of the profile. In the section Roles, click Add roles.
  6. Go back to the profile. In the section Enterprise roles, click Add enterprise role. Search for Broker in Enterprise role name, and then for Repair* in Display name.

Result:

ItemKarl seesThis confirms
3The message "Your changes are saved."Karl manages the users of the unit
4Jonas in the result table, with the login ID as plain textKarl cannot open a user outside the unit
5The three roles of Claims-Desk and no role of Policy-PortalKarl assigns the roles of one application
6Repair-Partner as a link and Broker as plain textKarl assigns one enterprise role

The check as a recording with narration (1.5 minutes):

Transcript of the recording
TimeNarration
00:00Now check the result as Karl. Log in to the administration interface with Karl's own credentials.
00:03Karl's menu is shorter than Ingrid's. Search for Elena, who has a profile in Garage Keller AG, and open her.
00:11Karl may change her data. Enter a remark and click Save.
00:16The change is saved.
00:19Now search for Jonas. He belongs to Autohaus Brandt, outside Karl's unit. The search finds him, but his login ID is not a link. Karl cannot open him.
00:29Open Elena again, and then her profile.
00:42Click Add roles. Karl is offered the three roles of Claims Desk, and no role of Policy Portal. Tick Read-claims and click Add roles.
00:44One role is added. Now click Add enterprise role and search for Broker.
00:49Broker is listed, but it is not a link. Karl cannot assign it.
00:53Search for Repair with an asterisk instead. Repair-Partner is a link. Click it.
00:56Elena now holds the enterprise role, and with it the roles that it contains.

To assign a role, Karl ticks its checkbox and clicks Add roles. To assign the enterprise role, Karl clicks its name. Elena then holds every role that Silvretta Insurance put into Repair Partner, including Read-policies of the application Policy Portal.

caution

A change to an administrator role applies at the next login to the administration interface. A session that is open keeps the roles and the scope that it started with. When you limit or withdraw a role, make sure that the administrator logs out.

Use the REST API instead​

info

To learn more about how to access Nevis ID's REST API, visit How to Use the API.

Over the REST API, one call for each role assigns the role and sets its scope. The three calls replace steps 2 to 4.

  1. Collect the external IDs of the user, the profile, the unit, the application, the enterprise role, and the three administrator roles. To list the profiles of a user, with the unit of each, see Get profiles.

  2. Send the following call for the role UserAndUnitAdmin:

    curl -X PATCH "https://<instance>/nevisidm/api/scim/v1/<clientExtId>/Users/<userExtId>" \
    -H "Authorization: Bearer <token>" \
    -H "Content-Type: application/scim+json" \
    -d '{
    "schemas": ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
    "performGet": false,
    "operations": [{
    "op": "add",
    "path": "urn:nevis:idm:scim:schemas:v1:extension:User.profiles[extId eq '\''<profileExtId>'\''].idmAuthorizations",
    "value": {
    "roleExtId": "<roleExtId>",
    "authorizedForAllClients": false,
    "authorizedClientExtIds": ["<clientExtId>"],
    "authorizedForAllUnits": false,
    "authorizedUnitExtIdSetForClients": {"<clientExtId>": ["<unitExtId>"]},
    "authorizedForAllApplications": false,
    "authorizedForAllEnterpriseRoles": false
    }
    }]
    }'
  3. Send the call again for each of the other two roles. Change roleExtId and add one field to value:

    RoleField to add to value
    AppOwner"authorizedApplicationExtIds": ["<applicationExtId>"]
    EnterpriseRoleOwner"authorizedEnterpriseRoleExtIdSetForClients": {"<clientExtId>": ["<enterpriseRoleExtId>"]}

Result: Status 204 for each call. Always send the tenant in authorizedClientExtIds: a role without a tenant reaches nothing. For all fields, see Patch user.

To check the result, read the user Karl:

curl -X GET "https://<instance>/nevisidm/api/scim/v1/<clientExtId>/Users/<userExtId>" \
-H "Authorization: Bearer <token>" \
-H "Accept: application/scim+json"

Result: Status 200. Under profiles > idmAuthorizations, the response has one item for each administrator role, with the external IDs that you sent. For more information, see Get user.

If something does not work​

What you seeLikely causeWhat to do
The list Role does not offer UserAndUnitAdmin, AppOwner, or EnterpriseRoleOwnerYou are not a tenant administratorAsk a tenant administrator to perform the steps
The unit search does not find the unitThe criterion is Unit name, and you entered the display nameSelect Display name, or search for the unit name
The enterprise role search reads "No enterprise role found"You entered a display name with a spaceSearch in Enterprise role name, or use *, for example Repair*
Adding a unit is refused: "The selected unit is not part of the client data room."The role names no tenant. It was assigned over the API without a tenantWithdraw the role and assign it again
After the login of Karl, the self-administration opensKarl logged in with a profile that holds no administrator roleLog out, log in again, and select the other profile
Karl finds users in the search and can open none of themThe role UserAndUnitAdmin has no unit in its scopeAdd the unit: items 3 to 5 of step 3
The page Add roles reads "No roles to be assigned to the profile"The role AppOwner is missing, or it has no application in its scopeOpen the role AppOwner and add the application
Assigning a role fails: "You are not authorized for the combined data room required to perform the action."The role AppOwner has no unit in its scopeOpen the role AppOwner and add the unit
The profile of Elena has no button Add enterprise roleThe role EnterpriseRoleOwner is missing, or it has no unit in its scopeOpen the role EnterpriseRoleOwner and add the unit
Karl can still use the old scope after a changeThe session of Karl started before the changeKarl logs out and logs in again
An API call returns status 403The caller lacks the role, or the object is outside the scope of that roleRead the roles of the caller, as in Use the REST API instead