Skip to content

Codeunit WSB_SecurityGroupCache

Implements the AAD Security Group cache.

Properties

Name Value
Access Public
SingleInstance True

Methods

wgFncCheckJobQueueEntry

Checks if the job queue entry has been set up, or asks the user to set up the job queue entry.

Returns

Type Description
Boolean true if the job queue entry is set up successfully

wgFncClearCache

Clears Security Group Buffer and Security Group Member Buffer cache.

wgFncClearMemberSnapshot

Clears the security group member snapshot.

wgFncEditJobQueueEntry

Edit the job queue entry for daily update of the member snapshot.

Returns

Type Description
Boolean true if the page for editing was opened successfully.

wgFncGetGroups

Gets all the defined security groups.

Parameters

Type Name Description
Record "Security Group Buffer" vRecSecurityGroupBuffer The resulting list of security groups.

wgFncGetMembers

Gets all the security group memberships.

Parameters

Type Name Description
Record "Security Group Member Buffer" vRecSecurityGroupMemberBuffer The resulting list of users and security groups they are a part of.

Returns

Type Description
List The list of security groups that were not retrieved successfully from Graph / Windows Active Directory.

wgFncIsJobQueueEntryActive

Gets whether the job queue entry for daily update of the member snapshot is active.

Returns

Type Description
Boolean true if the job queue entry is enabled.

wgFncSetUpJobQueueEntry

Sets up a job queue entry for daily update of the member snapshot.

Parameters

Type Name Description
Record "Job Queue Entry" vRecJobQueueEntry The job queue entry.

Returns

Type Description
Boolean true if the job queue entry was set up successfully.

wgFncSuspendCache

Suspends Security Group Buffer and Security Group Member Buffer caching.

Parameters

Type Name Description
Boolean pSuspendCache Whether to suspend the caching.

wgFncUpdateMemberSnapshot

Updates the snapshot of the security group members.

Returns

Type Description
Boolean true if the snapshot was updated successfully.