UserService.GetUserLite
Reference
API.Contracts.User UserService.GetUserLite()
Returns a lite user object with only essential fields populated for the current user. Designed for Custom Programs needing basic info about the current user without full payload overhead.
Parameters
None
Returns
API.Contracts.Userwith only:IdUserNameUserEmailTypeInstanceIdRoles
- All other properties are default values.
Caveats
- Internal use only: Not exposed via API endpoints or proxy services.
- Intended for Custom Program consumption.
Usage
// Returns details of the current user
var user = UserService.GetUserLite();
// user.Id, user.UserName, user.UserEmail, user.TypeInstanceId, user.Roles are populated for the current user
Sample Response
{
"id": "03f63b17-3ee5-474e-8336-b134007b906e",
"userEmail": "admin@acmecorp.com",
"userName": "Tenant Admin",
"roles": [ "Tenant Administrator", "None" ],
"typeInstanceId": "958d3709-5861-4ebc-a0e0-b134007b8fe5"
}
Design Considerations
- Lite service minimizes payload and processing.
- Not accessible outside Custom Programs.