Class SecurityGroupMembershipRequirement
Security group membership requirement.
Inheritance
System.Object
SecurityGroupMembershipRequirement
Namespace: Microsoft.GNS.Roster.Web
Assembly: Microsoft.GNS.Roster.Web.dll
Syntax
public class SecurityGroupMembershipRequirement : IAuthorizationRequirement
Constructors
View SourceSecurityGroupMembershipRequirement(Boolean, Guid[])
Initializes a new instance of the SecurityGroupMembershipRequirement class.
Declaration
public SecurityGroupMembershipRequirement(bool matchAllGroups, params Guid[] securityGroupDisplayNames)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | matchAllGroups | True to require the user be a member of all groups provided. False if the user only needs to be a member of a single group. |
Guid[] | securityGroupDisplayNames | The display names of the security groups in which to check membership. |
Properties
View SourceMatchAllGroups
Gets a value indicating whether a user needs to be a member of all groups or just one.
Declaration
public bool MatchAllGroups { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
SecurityGroupIds
Gets the names of the security group in which to check membership.
Declaration
public IEnumerable<Guid> SecurityGroupIds { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Guid> |