Get Grant
Resolve a Grant identifier to the Grant it names, anywhere in the realm.
A Grant identifier is unique within the Realm, so this operation needs no User or Principal. Use it when you hold a Grant identifier and nothing else, for example from a log line, a support ticket or a notification, and need to find out whose Grant it is or administer it directly. The response carries the Grant's principalId and the userId of the User who created it.
This differs from the Consent API's Get User Grant and Get Principal Grant, which only return a Grant related to the named User or Principal. The Admin API is ungrounded and intended for back-office tooling acting as a machine-to-machine client. It needs the biza-au:haas:admin:read scope (see Admin API scopes).
The API returns a 404 Resource/NotFound response when the Grant does not exist, when it is a machine-to-machine Grant or a consumer dashboard login (which are not Grants on this API), or when the realm is unknown or not one your credential is entitled to. Every cause returns the same response.
A revoked Grant stays readable, with a status of REVOKED. Read the Grant's state from status, not from expiryTime.
Admin APIβ
Get Grantβ
From the HaaS Admin API 0.0.1-alpha.18. See the full reference.
Loading...