Organization Roles & API Keys¶
Every user in an IAM organization has one of three roles: Owner, Admin or Member. The role decides what the user can manage in that organization in IAM. It is separate from the roles you create in the whitesky.cloud NV portal (see Roles & Permissions).
The three roles¶
| Owner | Admin | Member | |
|---|---|---|---|
| Use the organization's access (anything granted to its members) | Yes | Yes | Yes |
| Invite users, remove users and change their role | Yes | Members and admins only | No |
| Cancel pending user invitations | Yes | Yes | No |
| Grant or remove the owner role | Yes | No | No |
| Manage API access keys | Yes | Admin-level keys only | No |
| View and revoke the organization's refresh tokens | Yes | Yes | No |
| Change the description and logo | Yes | Yes | No |
| Invite or link other organizations (ORGANIZATIONS tab) | Yes | No | No |
| Create sub-organizations | Yes | No | No |
| Delete the organization | Yes | No | No |
Note
The admin role only applies to the organization the user is an admin of. On its sub-organizations, and on organizations that include it as a member, an admin has the same access as a member. An owner keeps owner rights on all sub-organizations.
An organization always keeps at least one owner: the last owner cannot be removed or have their role changed.
Inviting a user with a role¶
- Select Organizations from the navigation drawer and open the organization.
- Select PEOPLE and click INVITE USER.
- Choose the role: Member, Admin or Owner. Admins do not see the Owner option.
- Enter the user's username, email address or phone number and click Invite User.
To change the role of an existing user, click next to the user in the PEOPLE list. Admins can only edit and remove members and admins; rows of owners show no edit or delete icons for them.
Owner-level and admin-level API keys¶
An API access key lets a script or application act for the organization. Each key has a level:
- Owner-level key: tokens created with it have owner rights on the organization.
- Admin-level key: tokens created with it have admin rights on the organization, and member rights on its sub-organizations. They can never be used to get owner rights.
When an owner adds a key, the Admin-level key checkbox decides its level. Leave it unchecked for an owner-level key.
When an admin adds a key, it is always admin-level. Admins only see admin-level keys in the API ACCESS KEYS list, and they cannot change a key to owner-level. Owner-level keys are only visible to owners, because their secret gives owner rights.
Tip
Use an admin-level key unless the automation really needs to create sub-organizations, manage owners or delete the organization.
When role changes take effect¶
A role change applies to tokens issued after the change. A token that a user already holds, or created from an API key before the change, keeps the rights it was issued with until it expires (at most 24 hours). Removing a user does not invalidate API keys they had access to. If a removed user could see the secret of a key, delete that key or create a new one.
Deleting an organization that is in use¶
An organization that another organization depends on cannot be deleted. For example, a customer's
organization is linked to the platform when the customer account is created. Deleting it is refused
with an error (organization_in_use in the API), and nothing is deleted.
This also affects deleting your account. An organization you are the only owner of is normally deleted together with your account. If that organization is in use, the account deletion is refused instead and nothing is removed. Add another owner to the organization first.
Single sign-on group synchronization¶
When an organization's membership is synchronized from an identity provider (see Single Sign-On (OIDC)), the synchronization only adds and removes members. Owner and admin roles are always assigned in IAM and are not removed by the synchronization.