Provides permission reads and admin permission writes. Matrices return all matching scopes. Decision lists return scope pages. Both use the order SERVER, DM, then each GROUP followed by its ROOM scopes. Groups and rooms follow the configured sidebar order. Only matching scopes are evaluated. Decision pages are live reads; layout or visibility changes can shift offsets. Keep the same filters on each request and advance by the number of returned scopes. A scope filter of DM selects DM even when include_direct_message_scope is false.
Summary
Functions
Explains permission resolution for another user. Requires role.manage.
Gets a complete role permission matrix. Requires role.manage. Returns NOT_FOUND when the role does not exist.
Gets the role-permission matrix for a single tier. Server scope requires role.manage; group and room scopes require role.manage or effective room.manage at the requested resource.
Gets a complete user permission matrix. Human targets require user.manage-permissions; bot targets require ownership or bot.manage. Returns NOT_FOUND when the user does not exist.
Lists one role's permission decisions as resource-oriented rows. Requires role.manage. Returns NOT_FOUND when the role does not exist.
Lists one user's permission decisions as resource-oriented rows. Human targets require user.manage-permissions; bot targets require ownership or bot.manage. Returns NOT_FOUND when the user does not exist.
Sets one role permission decision. Server scope requires role.manage; group and room scopes also accept effective room.manage at that resource.
Sets one user permission decision. Human targets require user.manage-permissions; bot targets require ownership or bot.manage and accept only allow or clear within the bot owner's current authority.
Functions
@spec explain_permissions( Req.Request.t(), Chatto.Admin.V1.ExplainPermissionsRequest.t() ) :: {:ok, Chatto.Admin.V1.ExplainPermissionsResponse.t()} | {:error, Chatto.Connect.Error.t()}
Explains permission resolution for another user. Requires role.manage.
@spec get_role_permission_matrix( Req.Request.t(), Chatto.Admin.V1.GetRolePermissionMatrixRequest.t() ) :: {:ok, Chatto.Admin.V1.GetRolePermissionMatrixResponse.t()} | {:error, Chatto.Connect.Error.t()}
Gets a complete role permission matrix. Requires role.manage. Returns NOT_FOUND when the role does not exist.
@spec get_role_permission_tier_matrix( Req.Request.t(), Chatto.Admin.V1.GetRolePermissionTierMatrixRequest.t() ) :: {:ok, Chatto.Admin.V1.GetRolePermissionTierMatrixResponse.t()} | {:error, Chatto.Connect.Error.t()}
Gets the role-permission matrix for a single tier. Server scope requires role.manage; group and room scopes require role.manage or effective room.manage at the requested resource.
@spec get_user_permission_matrix( Req.Request.t(), Chatto.Admin.V1.GetUserPermissionMatrixRequest.t() ) :: {:ok, Chatto.Admin.V1.GetUserPermissionMatrixResponse.t()} | {:error, Chatto.Connect.Error.t()}
Gets a complete user permission matrix. Human targets require user.manage-permissions; bot targets require ownership or bot.manage. Returns NOT_FOUND when the user does not exist.
@spec list_role_permission_decisions( Req.Request.t(), Chatto.Admin.V1.ListRolePermissionDecisionsRequest.t() ) :: {:ok, Chatto.Admin.V1.ListRolePermissionDecisionsResponse.t()} | {:error, Chatto.Connect.Error.t()}
Lists one role's permission decisions as resource-oriented rows. Requires role.manage. Returns NOT_FOUND when the role does not exist.
@spec list_user_permission_decisions( Req.Request.t(), Chatto.Admin.V1.ListUserPermissionDecisionsRequest.t() ) :: {:ok, Chatto.Admin.V1.ListUserPermissionDecisionsResponse.t()} | {:error, Chatto.Connect.Error.t()}
Lists one user's permission decisions as resource-oriented rows. Human targets require user.manage-permissions; bot targets require ownership or bot.manage. Returns NOT_FOUND when the user does not exist.
@spec set_role_permission( Req.Request.t(), Chatto.Admin.V1.SetRolePermissionRequest.t() ) :: {:ok, Chatto.Admin.V1.SetRolePermissionResponse.t()} | {:error, Chatto.Connect.Error.t()}
Sets one role permission decision. Server scope requires role.manage; group and room scopes also accept effective room.manage at that resource.
@spec set_user_permission( Req.Request.t(), Chatto.Admin.V1.SetUserPermissionRequest.t() ) :: {:ok, Chatto.Admin.V1.SetUserPermissionResponse.t()} | {:error, Chatto.Connect.Error.t()}
Sets one user permission decision. Human targets require user.manage-permissions; bot targets require ownership or bot.manage and accept only allow or clear within the bot owner's current authority.