API Reference
Class
UserPrimaryGroupService
Produces snapshots describing primary-group assignments for accounts, reusing cached user data when possible.
Inheritance
- Object
- UserPrimaryGroupService
Methods
public static async Task<UserPrimaryGroupSnapshot> GetSnapshotAsync(ActiveDirectoryDataServices dataServices, String domainName, Boolean verifyMembership = false, CancellationToken cancellationToken = null) #Returns:
Task<UserPrimaryGroupSnapshot>Returns a snapshot of users with non-standard primaryGroupID and optional membership mismatches.
Parameters
- dataServices ADPlayground.ActiveDirectoryDataServices
- Optional directory data services.
- domainName System.String
- Domain to query.
- verifyMembership System.Boolean = false
- When true, verifies membership in the referenced group.
- cancellationToken System.Threading.CancellationToken = null
- Cancellation token.