pub struct PermissionsGlobalResource<'a> { /* private fields */ }Expand description
client.permissions().global_()
Implementations§
Source§impl<'a> PermissionsGlobalResource<'a>
impl<'a> PermissionsGlobalResource<'a>
pub fn auths(&self) -> PermissionsGlobalAuthsResource<'a>
Sourcepub fn get(&self) -> Result<GlobalPermissions>
pub fn get(&self) -> Result<GlobalPermissions>
Get the current user’s global permissions
GET /permissions/global
Returns effective global permission values for the authenticated user, grouped by active module. No permission-administration grant is required. Includes registered keys even without a grant: boolean flags are false and selection arrays are empty. A maximum-level permission is represented by a one-element array with the effective maximum; unrestricted maximum access uses 99999. Multi-selection grants expand unrestricted access into currently available IDs, so this response cannot distinguish unrestricted access from explicit grants to all current values. Inactive modules are absent; compatibility aliases in churchdb can be null when their source in churchgroup is absent. Use the definitions and origins endpoints for value semantics and assignment provenance. Group-internal permissions and additional object policies are not combined here.
§Example
let item = client.permissions().global().get()?;
println!("{:?}", item);Sourcepub fn get_person_summary(
&self,
) -> Result<GetPermissionsGlobalPersonSummaryData>
pub fn get_person_summary( &self, ) -> Result<GetPermissionsGlobalPersonSummaryData>
Summarize Persons with Global Permissions
GET /permissions/global/person-summary
Returns every registered global permission of active modules with per-selection counts across non-archived persons. Requires administer persons in churchcore; this administrative overview has no additional person-visibility filter and does not generally exclude system users. Includes zero-count selections. Boolean permissions have one dataId=null selection. Data-field permissions start with unrestricted dataId=-1, followed by configured IDs in ascending order. Maximum grants count toward every configured level up to the effective maximum; unrestricted counts only include grants covering future values. Preview arrays contain the first three matching person IDs in ascending order. Permissions follow definition order. Counts across selections can overlap. No pagination or full person lists are returned; load /permissions/global/auths/{authId}/persons for one selection.
§Example
let person_summary = client.permissions().global().get_person_summary()?;
println!("{:?}", person_summary);