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.
What it is, and what it is not
Section titled “What it is, and what it is not”Home administration is a second path into one tenant. It changes nothing about the first.
| Home administrator | Portal administrator (seat) | |
|---|---|---|
| Signs in at | Your tenant’s issuer, for example https://login.example.com/admin/, with their directory account | The estate’s admin issuer, with an account in the administrators realm |
| Who decides | Bindings in the tenant’s administration audience, at the tenant | A seat at the tenant, held on the central install |
| Can manage | Users, groups, providers, factors, issuers, realms, domains, clients, themes, messages, and the bindings in the tenant’s own audiences | Everything a home administrator can, plus the tenant itself |
| Can never | Read or change seats, invite portal administrators, create service accounts, change the tenant record, reach the estate, or mint and widen roles | Nothing 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.
Before you begin
Section titled “Before you begin”- Identity server 1.84 or later, the console at 0.46 or later,
awctl0.40 or later, and Terraform provider 0.32 or later. - The owner seat at the tenant (
tenancy.owner). Turning home administration on needs the permissiontenancy.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 holdingtenant.adminis 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 ashttps://login.example.com/customerscannot carry home administration. See Domains and issuers and Use your own domain. - On your own install, a route for
/admin/. The edge must sendISSUER_HOST/admin/*to the console service with the prefix kept, and the Admin API must allow the issuer’s origin over CORS.
Turn on home administration
Section titled “Turn on home administration”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, andadministration.viewerand the conditionadministration.stepUp; - a public console client with the redirect URIs
ORIGIN/admin/andORIGIN/admin/silent-renew.htmlfor 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.
In the portal
Section titled “In the portal”- In the Authwise portal, open your tenant and click Administrators. The Invite your team link on the tenant’s page opens the same page.
- 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.
- 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.
With awctl
Section titled “With awctl”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:
awctl tenancy tenants enable-home-administration TENANT_ID --issuer ISSUER_IDawctl tenancy tenants describe TENANT_IDReplace 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.
With Terraform
Section titled “With Terraform”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.
On your own install, as an operator
Section titled “On your own install, as an operator”An operator can enable it on the tenancy admin listener, with the same effect:
awtenant tenants enable-product TENANT_ID administration --issuer ISSUER_IDThe estate’s own admin tenant is refused with FailedPrecondition: its
realms hold the estate’s operators, and a directory never administers it.
Choose your administrators
Section titled “Choose your administrators”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.
| Role | In the portal | What it allows |
|---|---|---|
administration.admin | Administrator | Everything 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.identity | Identity operations | People, groups, identity providers, and sign-in factors, and the events about them. No configuration. The role for a helpdesk. |
administration.viewer | Viewer | Reads everything an administrator can see. Changes nothing. |
In the portal
Section titled “In the portal”- On the Administrators page, under Directory administrators, click Add an administrator.
- In Search users and groups, enter a name or email address and select the user or group. The list is your tenant’s realms.
- In Role, select Administrator, Identity operations, or Viewer.
- Leave Require multi-factor sign-in selected unless the person’s realm has no second factor. See Require multi-factor sign-in.
- 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.
With awctl
Section titled “With awctl”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:
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_IDReplace 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.
With Terraform
Section titled “With Terraform”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.
What a binding can and cannot be
Section titled “What a binding can and cannot be”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.
Sign in at your own host
Section titled “Sign in at your own host”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.
Require multi-factor sign-in
Section titled “Require multi-factor sign-in”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.
What the audit trail shows
Section titled “What the audit trail shows”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.
Turn it off
Section titled “Turn it off”There is no off switch on the portal, in awctl, or in Terraform. An
operator turns home administration off on the tenancy admin listener:
awtenant tenants disable-product TENANT_ID administrationDisabling 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.
Troubleshooting
Section titled “Troubleshooting”| Symptom | Cause 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 PermissionDenied | The 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 issuer | Home 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 own | The estate’s admin tenant is never home-administered. |
https://ISSUER_HOST/admin/ shows Administration isn’t turned on here | The 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-in | The 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 install | The edge does not route /admin/* to the console service with the prefix kept. Add the route. |
| Sign-in fails with a redirect URI error | The 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 PermissionDenied | By 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 administrator | Those 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 access | Access ends with the current token. The issuer refuses the next one. |
What’s next
Section titled “What’s next”- Realms and Sign in through SAML to bring your directory’s people into the tenant.
- Route sign-ins by email domain if the issuer serves more than one realm.
- Service accounts for automation, which stays a portal administrator’s surface.