pub struct PermissionsInternalGroupsResource<'a> { /* private fields */ }Expand description
client.permissions().internal().groups()
Implementations§
Source§impl<'a> PermissionsInternalGroupsResource<'a>
impl<'a> PermissionsInternalGroupsResource<'a>
pub fn auths(&self) -> PermissionsInternalGroupsAuthsResource<'a>
Sourcepub fn get(&self, group_id: impl Display) -> Result<InternalGroupPermissions>
pub fn get(&self, group_id: impl Display) -> Result<InternalGroupPermissions>
Get the current user’s internal permissions for a group
GET /permissions/internal/groups/{groupId}
Calculates the authenticated user’s group-internal permissions for the target group, including inherited grants from superior groups. Values are grouped by active module. Registered flags without grants are false; level/selection values without grants are 0. Maximum-level grants are integers (99999 for unrestricted), while multiple selections are integer arrays. No permission-administration grant or group-visibility check is performed, and the group is not loaded: an unknown group ID returns the default permission structure rather than 404. Global grants and object policies are separate, so this response is not a complete authorization decision. Unlike the all-groups endpoint, this response includes legacy +create posts, derived as the conjunction of internal and visible post-creation grants.
§Example
let group = client.permissions().internal().groups().get(42)?;
println!("{:?}", group);Sourcepub fn list(&self) -> Result<Value>
pub fn list(&self) -> Result<Value>
Get the current user’s internal permissions by group
GET /permissions/internal/groups
Calculates the authenticated user’s group-internal permissions from active memberships, role assignments and inheritance through the group hierarchy. Returns an unpaginated map keyed by target group ID, or [] when there are no calculated groups. Values are grouped by active module, including false/0 defaults for registered keys without grants. This is an internal-permission calculation, not a list of visible groups or a complete authorization decision: global grants and object policies are separate. No permission-administration grant is required. The legacy +create posts flag is derived only by the single-group endpoint, not here.
§Example
let result = client.permissions().internal().groups().list()?;
println!("{:?}", result);