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.
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.
| Object | Name | Display name |
|---|---|---|
| Tenant | Admin | |
| Unit to administer | Garage-Keller-AG | Garage Keller AG |
| Future administrator | karl | Karl Keller |
| User of the unit | elena | Elena Rossi |
| Application in the catalog | Claims-Desk | Claims Desk |
| Enterprise role in the catalog | Repair-Partner | Repair Partner |
| Application outside it | Policy-Portal | Policy Portal |
| Enterprise role outside it | Broker | Broker |
| User outside the unit | jonas | Jonas 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 interface | Meaning |
|---|---|
| IDM role | Administrator role |
| Data room | Scope of an administrator role |
| Authorization | A role that is assigned to a profile |
| Client | Tenant |
| restricted | The scope is limited in this dimension. It can also name nothing |
| global | The scope is unlimited in this dimension |
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.
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
- In the left menu, under Users, click Search and modify user.
- Enter
karl*in Login ID and click Search. - In the table Users, click the login ID of Karl. The page User administration opens.
- 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:
Step 3: Add the first administrator role and limit it to the unit
-
On the page Profile administration, in the section IDM roles, click Add IDM role.
-
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."
-
In the section Authorized for the following units, click Add units.
-
In the list next to Search criteria, select Display name. Enter
Garage Keller AGand click Search. -
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
| Time | Narration |
|---|---|
| 00:00 | Now let Karl manage the users of the unit. Under IDM roles, click Add IDM role. |
| 00:02 | In the list Role, select UserAndUnitAdmin. The role is assigned as soon as you select it. |
| 00:03 | The 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:15 | Click Add units. In the unit search, select Display name, enter Garage Keller AG, and click Search. |
| 00:24 | The tree opens at the unit. Click its name. |
| 00:25 | The unit is added and saved at once. The role now covers Garage Keller AG and every unit below it. |
| 00:28 | Return 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, select | After the unit, click | Search in | Enter | Click the name |
|---|---|---|---|---|
| AppOwner | Add applications | Display name | Claims Desk | Claims-Desk |
| EnterpriseRoleOwner | Add enterprise roles | Enterprise role name | Repair-Partner | Repair-Partner |
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 scope of the role EnterpriseRoleOwner, with the unit and the enterprise role:
The profile of Karl with the three administrator roles:
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.
- 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.
- Open User management > Advanced settings.
- Click Search and modify user, search for
elena, and click the login ID. Change a field, for example Remarks, and click Save. - Click Search and modify user and search for
jonas. - Open Elena again and click the name of the profile. In the section Roles, click Add roles.
- Go back to the profile. In the section Enterprise roles, click Add enterprise role. Search for
Brokerin Enterprise role name, and then forRepair*in Display name.
Result:
| Item | Karl sees | This confirms |
|---|---|---|
| 3 | The message "Your changes are saved." | Karl manages the users of the unit |
| 4 | Jonas in the result table, with the login ID as plain text | Karl cannot open a user outside the unit |
| 5 | The three roles of Claims-Desk and no role of Policy-Portal | Karl assigns the roles of one application |
| 6 | Repair-Partner as a link and Broker as plain text | Karl assigns one enterprise role |
The check as a recording with narration (1.5 minutes):
Transcript of the recording
| Time | Narration |
|---|---|
| 00:00 | Now check the result as Karl. Log in to the administration interface with Karl's own credentials. |
| 00:03 | Karl's menu is shorter than Ingrid's. Search for Elena, who has a profile in Garage Keller AG, and open her. |
| 00:11 | Karl may change her data. Enter a remark and click Save. |
| 00:16 | The change is saved. |
| 00:19 | Now 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:29 | Open Elena again, and then her profile. |
| 00:42 | Click 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:44 | One role is added. Now click Add enterprise role and search for Broker. |
| 00:49 | Broker is listed, but it is not a link. Karl cannot assign it. |
| 00:53 | Search for Repair with an asterisk instead. Repair-Partner is a link. Click it. |
| 00:56 | Elena 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.
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
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.
-
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.
-
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}}]}' -
Send the call again for each of the other two roles. Change
roleExtIdand add one field tovalue:Role Field to add to valueAppOwner "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 see | Likely cause | What to do |
|---|---|---|
| The list Role does not offer UserAndUnitAdmin, AppOwner, or EnterpriseRoleOwner | You are not a tenant administrator | Ask a tenant administrator to perform the steps |
| The unit search does not find the unit | The criterion is Unit name, and you entered the display name | Select Display name, or search for the unit name |
| The enterprise role search reads "No enterprise role found" | You entered a display name with a space | Search 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 tenant | Withdraw the role and assign it again |
| After the login of Karl, the self-administration opens | Karl logged in with a profile that holds no administrator role | Log out, log in again, and select the other profile |
| Karl finds users in the search and can open none of them | The role UserAndUnitAdmin has no unit in its scope | Add 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 scope | Open 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 scope | Open the role AppOwner and add the unit |
| The profile of Elena has no button Add enterprise role | The role EnterpriseRoleOwner is missing, or it has no unit in its scope | Open the role EnterpriseRoleOwner and add the unit |
| Karl can still use the old scope after a change | The session of Karl started before the change | Karl logs out and logs in again |
| An API call returns status 403 | The caller lacks the role, or the object is outside the scope of that role | Read the roles of the caller, as in Use the REST API instead |
Related content
- Delegated administration: administrator roles, their scope, and the rules of delegation
- B2B organization structures: who administers the users of a partner company, and who controls the authorizations
- Advanced settings: the administration interface in the management console
- Patch user: the API operation that assigns an administrator role with its scope