Skip to content
Customer IdentityMarkdown

A realm per business customer

Give each business customer a realm beneath yours, with their own users, apps and administrators, while you keep oversight from above.

Available, with limitsAPI

When you sell to businesses, each business customer has users of its own, and often wants to run them itself. Give the business customer a realm beneath your customer realm: their users sign in there, their administrators add and remove them, and nothing in it reaches your realm or another customer’s. You keep oversight, because reach descends from your realm and never climbs.

  • Privilege: RealmOwner in your customer realm, to create the realm beneath it and hand it over.
  • Where: the API, to create the realm and to grant its administrators.
  • The business customer’s host name, under cvyuh.com, such as foobar-acme.cvyuh.com, and the people who will administer it.

A realm created beneath yours is a full realm: its own users and groups, its own apps, its own signing keys and sign-in settings, and its own host names. A token issued in it means nothing in your realm or a sibling’s.

Who runs it is decided by Delegated administration. Make a group of the business customer’s administrators in their realm, and grant that group RealmOwner there: they administer their realm and any realm they create beneath it, and nothing above. Your own administrators, holding RealmOwner in your realm, reach theirs too.

WhoReaches
Your administrators, in your customer realmYour realm, and every business customer’s realm beneath it
The business customer’s administrators, in their realmTheir realm, and the realms they create beneath it
The business customer’s usersSign-in to their own realm only

Your app reaches each business customer’s users through their realm: it’s registered there, and trusts that realm’s issuer. See Connect one app to many business customers.

  1. Create the business customer’s realm beneath yours, with the host names their users will sign in at, and a password for its first administrator. See Realms and sub-realms.
  2. Hand it over. In the new realm, put the business customer’s administrators in a group and grant it RealmOwner, or RealmViewer for a group that only looks. See Delegated administration.
  3. Add their users, or let their administrators add them. See Create customer accounts.
  4. Connect your app to the new realm. See Connect one app to many business customers.

The business customer’s users sign in at their realm’s host name, with its own settings and wording. They never see your realm or another business customer’s.

LimitDefaultCan it be changed?
Host names per realm3Cvyūh raises it on request
Realms directly beneath a realm, and levels beneath itNo limitCvyūh can set a limit per realm, on request
What descends from your realmRealmOwner and RealmViewer over everythingNarrower privileges apply only in the realm that holds them
SymptomCauseFix
The business customer’s administrator is refused (403) in their realmTheir group doesn’t hold a privilege there, or holds RealmViewerGrant the group RealmOwner in their realm
Your administrator with a narrower privilege can’t reach a business customer’s realmOnly *REALM/* privileges reach the realms beneathGrant RealmOwner or RealmViewer in your realm, or a privilege in theirs
Their users can’t sign in at allThe realm is suspendedActivate it
Creating the realm is refused with 400, naming a nesting limitA limit on realms beneath yours has been reachedCreate it elsewhere, or ask Cvyūh to raise the limit

Creating, suspending and deleting the realm are recorded as changes to the realm. Each grant and each administrator’s decision, allowed or refused, is logged, naming the privilege it rested on; see Delegated administration.

  • Suspending stops a business customer at once. Its host names stop answering, so no one signs in or gets a token, and nothing is deleted: activating it brings everything back.
  • Only “everything here and below” descends. A narrower grant, such as one service in your realm, applies only in the realm that holds it.
  • One person in two business customers has two accounts, one in each realm.
  • Their own directory can’t feed it yet. Provisioning from a business customer’s own directory over SCIM is planned; see What’s next for lifecycle.