app.didpic.admin.grantRole

Grant a role.

Details · procedure
Kindprocedure
Authorityadmin.didpic.app
Indexed

Procedure

procedure · POST

Input

application/json

did

requiredstring · did

role

requiredstring
  • enum: moderator | administrator

Output

application/json

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Revoke a role.

  • Assign a role to a user

  • Grant admin access to a DID. Requires admin authorization.

  • Add a DID to the moderators allowlist with the given role. Requires the caller to have the `superAdmin` role. Writes a `moderatorGranted` audit row only when a new row is inserted or a revoked row is reactivated. Idempotent: granting a DID that already holds the same active role returns 200 with `granted: false` and no audit row.

  • Grants a DID a role on a space. Only honored when authored by the space owner. Lives in the owner's repo.