pub struct PermissionsInternalGroupsAuthsResource<'a> { /* private fields */ }Expand description
client.permissions().internal().groups().auths()
Implementations§
Source§impl<'a> PermissionsInternalGroupsAuthsResource<'a>
impl<'a> PermissionsInternalGroupsAuthsResource<'a>
Sourcepub fn get_persons(
&self,
group_id: impl Display,
auth_id: impl Display,
) -> Result<PermissionPersons>
pub fn get_persons( &self, group_id: impl Display, auth_id: impl Display, ) -> Result<PermissionPersons>
List Persons with a Group-Internal Permission
GET /permissions/internal/groups/{groupId}/auths/{authId}/persons
Lists non-archived persons with one effective group-internal permission in the target group, combining direct and inherited grants and excluding revoked contributions. Requires administer persons in churchcore. The group must exist, but no additional group/person visibility check is performed. For selectable permissions data_id is required: a configured ID yields one selection, while -1 yields one selection for each currently configured value in ascending order, possibly none. Unlike the global endpoint, -1 does not mean only persons with unrestricted grants. Maximum permissions match every requested level up to the effective maximum. For boolean permissions omit data_id; the single selection then has dataId=null. Person IDs are sorted numerically. No pagination or include=origins option is implemented here. Unknown groups and unknown, inactive or global authId values return 404; invalid selection combinations return 400.
Use Self::get_persons_with to pass query parameters.
§Example
let person = client.permissions().internal().groups().auths().get_persons(42, 125)?;
println!("{}", person.auth_id);Sourcepub fn get_persons_with(
&self,
group_id: impl Display,
auth_id: impl Display,
query: &GetPermissionsInternalGroupsGroupIdAuthsAuthIdPersonsQuery,
) -> Result<PermissionPersons>
pub fn get_persons_with( &self, group_id: impl Display, auth_id: impl Display, query: &GetPermissionsInternalGroupsGroupIdAuthsAuthIdPersonsQuery, ) -> Result<PermissionPersons>
List Persons with a Group-Internal Permission
Like Self::get_persons, with query parameters.
GET /permissions/internal/groups/{groupId}/auths/{authId}/persons
Lists non-archived persons with one effective group-internal permission in the target group, combining direct and inherited grants and excluding revoked contributions. Requires administer persons in churchcore. The group must exist, but no additional group/person visibility check is performed. For selectable permissions data_id is required: a configured ID yields one selection, while -1 yields one selection for each currently configured value in ascending order, possibly none. Unlike the global endpoint, -1 does not mean only persons with unrestricted grants. Maximum permissions match every requested level up to the effective maximum. For boolean permissions omit data_id; the single selection then has dataId=null. Person IDs are sorted numerically. No pagination or include=origins option is implemented here. Unknown groups and unknown, inactive or global authId values return 404; invalid selection combinations return 400.