SPUser.UserId property
Gets the information of the user that contains the user's name identifier and the issuer of the user's name identifier.
Namespace: Microsoft.SharePoint
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Syntax
'Declaration
Public ReadOnly Property UserId As SPUserIdInfo
Get
'Usage
Dim instance As SPUser
Dim value As SPUserIdInfo
value = instance.UserId
public SPUserIdInfo UserId { get; }
Property value
Type: Microsoft.SharePoint.SPUserIdInfo
The information of the user that contains the user's name identifier and the issuer of the user's name identifier.
Remarks
This does a best effort to only expose name ID and the issuer of name ID of real users (that is, no groups or no share by link).