Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Extracts the equivalent SecurityIdentifier from claim data representing an Active Directory user or security group.
Namespace: Microsoft.SharePoint.Administration.Claims
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public Shared Function GetSecurityIdentifierFromClaim ( _
claimType As String, _
claimValue As String, _
claimValueType As String, _
claimOriginalIssuer As String _
) As SecurityIdentifier
'Usage
Dim claimType As String
Dim claimValue As String
Dim claimValueType As String
Dim claimOriginalIssuer As String
Dim returnValue As SecurityIdentifier
returnValue = SPActiveDirectoryClaimProvider.GetSecurityIdentifierFromClaim(claimType, _
claimValue, claimValueType, claimOriginalIssuer)
public static SecurityIdentifier GetSecurityIdentifierFromClaim(
string claimType,
string claimValue,
string claimValueType,
string claimOriginalIssuer
)
Parameters
claimType
Type: System.StringThe type of the claim. See ClaimType.
claimValue
Type: System.StringThe value of the claim. See Value.
claimValueType
Type: System.StringThe value type of the claim. See ValueType.
claimOriginalIssuer
Type: System.StringThe original issuer of the claim. See OriginalIssuer.
Return value
Type: System.Security.Principal.SecurityIdentifier
An object that represents the security identifier.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | The claim data passed was not a user or security group claim. |
See also
Reference
SPActiveDirectoryClaimProvider class
SPActiveDirectoryClaimProvider members