1.2.3 (Option) Set Permission
Set Permission Step-by-Step test guide
Sets/updates an AccessPermission for a given (user, role). The caller must be a signed account that is registered in AdminAccounts. The function reads the current permission (failing if the role is not assigned), ensures the new permission differs from the current one, writes the updated permission into AccountRoles storage, emits PermissionUpdated { user, role, permission }, and returns Ok(()).
Developer → Extrinsics.

Account: admin.
Extrinsic: choose
xcavateWhitelist→ Call:set_permission.

Parameters:
user: account with the role.role: the role to update.permission: selectCompliantorRevoked.

Submit Transaction

Sign and Submit

Approved at second attempt

✅ Check result:
Developer → (1) Chain State → (2)
xcavateWhitelist → accountRoles→ (3) accountId32 (Bob) → (4) Click + QueryShould match permission.

Last updated