pub struct PermissionsInternalPersonsResource<'a> { /* private fields */ }Expand description
client.permissions().internal().persons()
Implementations§
Source§impl<'a> PermissionsInternalPersonsResource<'a>
impl<'a> PermissionsInternalPersonsResource<'a>
Sourcepub fn get(&self, person_id: impl Display) -> Result<InternalPersonPermissions>
pub fn get(&self, person_id: impl Display) -> Result<InternalPersonPermissions>
Get the current user’s internal permissions toward a person
GET /permissions/internal/persons/{personId}
Calculates what the authenticated user is granted through group-internal permissions toward the target person. It does not return that person’s own grants. The target groups come from the person’s memberships in non-archived groups, currently including requested, waiting and to-delete memberships. The caller’s effective internal grants across those groups are combined by maximum value for person-related keys. Missing flags are false and missing levels are 0; unrestricted levels use 99999. No person-visibility or existence check is performed, so an unknown person ID returns default values rather than 404. Global grants and additional person policies are not included. +edit persons is a deprecated boolean derived from the modern person-field level. Service-module keys are absent when that module is inactive.
§Example
let person = client.permissions().internal().persons().get(42)?;
println!("{:?}", person);