Box.V2.Managers.BoxUsersManager.GetUserInformationAsync C# (CSharp) Method

GetUserInformationAsync() public method

Retrieves information about a user in the enterprise. Requires enterprise administration authorization.
public GetUserInformationAsync ( string userId ) : Task
userId string The user identifier.
return Task
        public async Task<BoxUser> GetUserInformationAsync(string userId)
        {
            BoxRequest request = new BoxRequest(_config.UserEndpointUri, userId);

            IBoxResponse<BoxUser> response = await ToResponseAsync<BoxUser>(request).ConfigureAwait(false);

            return response.ResponseObject;
        }