Skip to content

Let your directory administer your tenant

Home administration lets the people your tenant already trusts administer it. An IT administrator who signs in through your organization’s directory, with the same account and the same multi-factor policy as everyone else, opens a console at your own sign-in host and manages users, groups, providers, and the rest of the tenant’s configuration. Who administers the tenant becomes a group in your directory, so joining or leaving that group is the whole of granting or revoking administration.

Technically, turning it on creates an administration audience on one of your tenant’s issuers, seeds three roles and a multi-factor condition into it, and registers a console client for that issuer’s host. A person who holds one of those roles at the tenant is admitted by the Admin API for the identity and access operations inside the tenant, and for nothing else.

Home administration is a second path into one tenant. It changes nothing about the first.

Home administratorPortal administrator (seat)
Signs in atYour tenant’s issuer, for example https://login.example.com/admin/, with their directory accountThe estate’s admin issuer, with an account in the administrators realm
Who decidesBindings in the tenant’s administration audience, at the tenantA seat at the tenant, held on the central install
Can manageUsers, groups, providers, factors, issuers, realms, domains, clients, themes, messages, and the bindings in the tenant’s own audiencesEverything a home administrator can, plus the tenant itself
Can neverRead or change seats, invite portal administrators, create service accounts, change the tenant record, reach the estate, or mint and widen rolesNothing a seat allows is removed by home administration

A home administrator is refused every tenancy operation, every operation on another tenant, every path in the estate’s admin audience (a-01), and every operation that creates, changes, or deletes a role or a permission. They can bind roles they already hold; they cannot make new ones.

The owner seat on the portal is the break-glass path. It is never removed and never conditional on home administration. If your directory or its multi-factor setup breaks, the owner still signs in at the estate’s console and repairs the tenant, as described in Administrators and owners.

  • Identity server 1.84 or later, the console at 0.46 or later, awctl 0.40 or later, and Terraform provider 0.32 or later.
  • The owner seat at the tenant (tenancy.owner). Turning home administration on needs the permission tenancy.administration.enable, which the owner holds, as does an estate operator. A member administrator sees the page and cannot enable it; a tenant’s service account holding tenant.admin is refused. See Administrators and owners.
  • A realm whose people come from your directory. Federate the realm to your identity provider, for example through SAML, or provision its users and groups with SCIM. The console offers your administrators the same sign-in the realm offers everyone. See Realms.
  • Groups in that realm. The strongest form of home administration is a role bound to a group that your directory provisions, such as “IT Admins”. A role bound to a single person works too.
  • An issuer at the root of a host. The console is served at https://ISSUER_HOST/admin/, so the issuer you choose must answer at the root of its host, with no path. An issuer at a path such as https://login.example.com/customers cannot carry home administration. See Domains and issuers and Use your own domain.
  • On your own install, a route for /admin/. The edge must send ISSUER_HOST/admin/* to the console service with the prefix kept, and the Admin API must allow the issuer’s origin over CORS.

Enabling is idempotent. Running it again on the same issuer re-applies the catalog, adds any role or permission a newer identity server declares, and changes nothing your administrators edited. Running it on a second issuer is refused until it is turned off on the first.

Enabling creates, on the issuer you choose:

  • an administration audience, with the roles administration.admin, administration.identity, and administration.viewer and the condition administration.stepUp;
  • a public console client with the redirect URIs ORIGIN/admin/ and ORIGIN/admin/silent-renew.html for every host the issuer answers at the root of.

It records the entry on the tenant, and the issuer’s discovery document at /.well-known/authwise-configuration advertises it. Your seats are not touched.

  1. In the Authwise portal, open your tenant and click Administrators. The Invite your team link on the tenant’s page opens the same page.
  2. In Directory administrators, select the issuer your administrators sign in at. An issuer with no host, or with a path in its address, is listed with the reason it cannot be chosen.
  3. Click Turn on home administration. The page shows Home administration is on, the console’s address under Your administrators sign in at, and the entry’s audience, console client, and step-up condition.

Sign in as yourself first with awctl auth login. The owner seat is a person’s, so a tenant’s service account is refused; an estate operator’s credential is admitted. The issuer is never read from your context:

Terminal window
awctl tenancy tenants enable-home-administration TENANT_ID --issuer ISSUER_ID
awctl tenancy tenants describe TENANT_ID

Replace TENANT_ID with your tenant’s identifier (t-…) and ISSUER_ID with the issuer’s (i-…). enable-home-administration prints the entry and the console’s address. describe shows whether home administration is on and at which issuer; --json prints the whole tenant row, with the entry under products.administration.

The resource calls the same operation. Run it with the owner’s credentials:

resource "authwise_domain" "login" {
custom = true
hostname = "login.example.com"
}
resource "authwise_issuer" "home" {}
# Home administration needs a binding at the root of a host.
resource "authwise_issuer_domain_binding" "home" {
issuer_id = authwise_issuer.home.issuer_id
domain_id = authwise_domain.login.domain_id
}
resource "authwise_tenant_home_administration" "this" {
issuer_id = authwise_issuer.home.issuer_id
depends_on = [authwise_issuer_domain_binding.home]
}

audience_id and console_client_id are read back from the entry, and authwise_tenant_config.administration reads the same values. Destroying the resource removes it from state and leaves home administration on, with a warning; see Turn it off.

An operator can enable it on the tenancy admin listener, with the same effect:

Terminal window
awtenant tenants enable-product TENANT_ID administration --issuer ISSUER_ID

The estate’s own admin tenant is refused with FailedPrecondition: its realms hold the estate’s operators, and a directory never administers it.

A directory administrator is a binding in the administration audience: a user or a group of your tenant’s realms, a role, and, by default, the multi-factor condition. There is no invitation, because your directory already created the accounts.

RoleIn the portalWhat it allows
administration.adminAdministratorEverything in the tenant’s identity and access configuration: people, groups, sign-in, issuers, realms, domains, clients, themes, messages, and who administers. It is tenant.admin without the tenancy half.
administration.identityIdentity operationsPeople, groups, identity providers, and sign-in factors, and the events about them. No configuration. The role for a helpdesk.
administration.viewerViewerReads everything an administrator can see. Changes nothing.
  1. On the Administrators page, under Directory administrators, click Add an administrator.
  2. In Search users and groups, enter a name or email address and select the user or group. The list is your tenant’s realms.
  3. In Role, select Administrator, Identity operations, or Viewer.
  4. Leave Require multi-factor sign-in selected unless the person’s realm has no second factor. See Require multi-factor sign-in.
  5. Click Add. The binding appears in the list with the subject’s state. A subject that is disabled or gone from your directory is marked as such; its binding stays but admits nobody, because the issuer no longer signs that person in.

To revoke, click Remove on the binding. For a group binding, remove the person from the group in your directory instead; their access ends with their current token.

Anyone who is not the owner sees the page read-only.

The binding anchors at the tenant, in the administration audience. Pass the audience the entry names and, to require multi-factor sign-in, the entry’s step-up condition:

Terminal window
awctl access access-bindings create \
--tenant-id TENANT_ID --issuer-id ISSUER_ID --audience-id AUDIENCE_ID \
--subject-type group --subject-id GROUP_ID \
--role-name administration.admin \
--resource-type tenant --resource-id TENANT_ID \
--condition-id CONDITION_ID

Replace AUDIENCE_ID with the administration audience (a-…) and CONDITION_ID with the step-up condition that awctl tenancy tenants describe TENANT_ID --json shows under products.administration. For one person, pass --subject-type user and the user’s identifier (u-…). Leave --condition-id off to allow a single-factor session.

resource "authwise_access_binding" "it_admins" {
tenant_id = "TENANT_ID"
issuer_id = authwise_issuer.home.issuer_id
audience_id = authwise_tenant_home_administration.this.audience_id
subject_type = "group"
subject_id = "GROUP_ID"
role_name = "administration.admin"
resource_type = "tenant"
resource_id = "TENANT_ID"
condition_id = "CONDITION_ID"
}

Replace GROUP_ID with the group’s identifier (g-…) and CONDITION_ID with the entry’s step-up condition.

The Admin API refuses, for a home administrator and for the owner alike:

  • a binding of an administration.* role anchored anywhere but the tenant. Guard’s administrative roles anchor at the tenant or at one network. See Which bindings carry the condition;
  • a condition other than none or the audience’s step-up condition;
  • a role not in the administration catalog, or any role whose name ends in .product;
  • from a home administrator, a role carrying a permission they do not hold themselves at the tenant. An administrator hands on only what they hold.

A home administrator holding administration.admin can also bind roles in the tenant’s application audiences, as tenant.admin can, so an application’s own roles stay administrable from the directory.

Your administrators open:

https://ISSUER_HOST/admin/

ISSUER_HOST is the host of the issuer you enabled, for example login.example.com. The page reads that issuer’s discovery document, finds the administration entry, and signs the person in at that issuer, through whatever sign-in the realm offers: your identity provider, or identifier routing if the issuer routes several realms. There is no tenant to pick; the host names it.

After sign-in the console is in home mode: one tenant, and only the sections the person’s roles open. There is no tenant switcher, no Settings, no seats, and no service accounts. The server decides every call, whatever the page offers.

Before home administration is enabled on that issuer, the address shows Administration isn’t turned on here.

The condition administration.stepUp is attached to every binding the portal writes unless you clear Require multi-factor sign-in. It admits a session whose acr is a multi-factor level: urn:authwise:acr:2, phr, or phrh. A session proven by a primary sign-in alone does not meet it, and every call is refused with PermissionDenied and a message of the form home administration: … does not hold identity.users.list at tenant/TENANT_ID …, as if the binding did not exist.

The acr is the session’s own, read from the token. A request cannot claim a higher level than the sign-in proved, and the console never asks the person for a level on their behalf; the realm’s factors, on its Authentication page, decide what the sign-in can prove.

In the portal, each binding shows multi-factor or no step-up. To change it, use Drop step-up or Require multi-factor on the binding. The condition is part of a binding’s identity, so the portal writes a new binding and then removes the old one.

Every change a home administrator makes is recorded with that person as the actor, under their own account in your realm. Each event also carries actor_audience_id, the audience whose catalog admitted the call: the tenant’s administration audience for a change made from your directory, and a-01 for a change made by a portal administrator. The field is on the tenant’s own events; the estate audit server (awctl audit) does not carry it.

There is no off switch on the portal, in awctl, or in Terraform. An operator turns home administration off on the tenancy admin listener:

Terminal window
awtenant tenants disable-product TENANT_ID administration

Disabling removes the console client and the tenant’s entry, so the console at /admin/ stops signing anyone in. The audience and its bindings stay. The seats are untouched, so disabling can never lock the tenant.

SymptomCause and fix
The portal lists the issuer with Its address has a path; the console needs an issuer at the root of its host.Home administration exists only on a host that names one tenant at its root. Choose an issuer bound at the root of a host, or add such a binding.
The portal lists the issuer with It has no host yet.The issuer has no domain binding. Bind it to a host first; see Domains and issuers.
Enabling is refused with PermissionDeniedThe caller is neither the owner nor an estate operator. A member administrator and a tenant’s service account holding tenant.admin cannot enable it; sign in as the owner.
Enabling is refused with FailedPrecondition naming another issuerHome administration is already on through that issuer. Have an operator disable it before enabling it elsewhere.
Enabling is refused with FailedPrecondition saying the tenant is the estate’s ownThe estate’s admin tenant is never home-administered.
https://ISSUER_HOST/admin/ shows Administration isn’t turned on hereThe issuer at this host has no administration entry. Enable it on this issuer, or open the host of the issuer you enabled.
https://ISSUER_HOST/admin/ shows This console can’t reach its sign-inThe console could not read /.well-known/authwise-configuration on this host. On your own install, check that the host is routed to the identity server and that /admin/ is routed to the console.
https://ISSUER_HOST/admin/ is a 404 or lands on the login page, on your own installThe edge does not route /admin/* to the console service with the prefix kept. Add the route.
Sign-in fails with a redirect URI errorThe console client lacks ORIGIN/admin/ and ORIGIN/admin/silent-renew.html for this host. Run the enable again; it derives the origins from the issuer’s root bindings and registers a host added since.
Every call is refused with home administration: … does not hold …The person holds no role at the tenant, or holds one with the step-up condition and signed in with a single factor. Add the binding, or have them sign in with a second factor, or drop step-up on the binding.
A tenancy call is refused with PermissionDeniedBy design. Seats, service accounts, the tenant record, and the estate are never admitted to a home administrator. Use the owner seat.
A writeAdvanced message-template field or a secret reference is refused for a home administratorThose fields check a second permission at central, which a home administrator never holds. Make that change as a portal administrator.
A person removed from the group still has accessAccess ends with the current token. The issuer refuses the next one.