Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

WhoAmIResponse.UserId Property

Definition

Namespace:
Microsoft.Crm.Sdk.Messages
Assembly:
Microsoft.Crm.Sdk.Proxy.dll
Package:
Microsoft.PowerPlatform.Dataverse.Client v1.2.10

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets the ID of the user who is logged on.

public:
 property Guid UserId { Guid get(); };
public Guid UserId { get; }
member this.UserId : Guid
Public ReadOnly Property UserId As Guid

Property Value

The ID of the user who is currently logged on or the user under whose context the executed code is running. This corresponds to the SystemUser.SystemUserId attribute, which is the primary key for the User (SystemUser) entity.

Applies to