When setting up multi-tenancy, you can use delegated administration to make user or access management changes within other managed organizations. In the case of managed service providers, delegated administration allows you to manage users and access on behalf of your end customers.
Requirements
As a reminder, to use the multi-tenancy feature, make sure you've completed the following for your organization:
- Get Approval: Contact your account representative to confirm your organization has been added to multi-tenancy. Once approved, you receive the multi-tenant entitlement.
- Make sure you have correct user types: Users within the managing org that will leverage the above feature set need to be provisioned as either a core or full platform users.
- Add users to appropriate group: Users with the core or full platform user type need to be added to a group with
tenant_settingsapplied.
Add the first user to a new managed organization
When a managed organization is created with organizationCreate, it starts with an authentication domain and two groups, Admin and User, but no users. Nobody can open the organization in the UI until a user is added from the managing organization. Complete these steps as a user in the managing organization with the Tenant Manager role. Adding users to groups and granting access require the Pro or Enterprise edition in the managing organization.
- Find the new organization's authentication domain. Run Query authentication domains with the new organization's ID, and use the domain whose
provisioningTypeismanual. - Find the new organization's groups. Run List groups with the new organization's ID, and copy the ID of the Admin group.
- Create the user in the domain from step 1.
- Add the user to the group from step 2.
The user gets an email to verify their address and set a password. When the new organization has one account, the Admin group already has the All Product Admin role on it, so you see that account once you log in.
If the user needs an account the Admin group can't reach, such as an account you shared with the organization, or a different role, grant access to the group. To find a role's ID, see List roles.
Tip
If a query for the new organization returns no groups, check that you're filtering by the new organization's ID and that you have the Tenant Manager role. Without it, the query returns only groups you hold a grant on, which is none in a new managed organization.
What can you call in NerdGraph?
Once you confirm that you meet the requirements for multi-tenancy, you can call our NerdGraph queries and mutations for managing users in managed organizations.
You'll be able to query all customerAdministration fields and execute a variety of mutations: