> ## Documentation Index > Fetch the complete documentation index at: https://docs.restaurant365.com/llms.txt > Use this file to discover all available pages before exploring further. # User by ID > Retrieves a single user by their unique identifier, including their roles, locations, and location group assignments **Security** The requesting user must have the following permission to retrieve a user: - Administration → Users → View Users ## OpenAPI ````json GET /public/v1/user-management/users/{userId} { "openapi": "3.0.1", "info": { "title": "R365 Public API", "contact": { "name": "R365 Services Team", "email": "r365@restaurant365.com" }, "version": "1.0" }, "security": [ { "Bearer": [] } ], "paths": { "/public/v1/user-management/users/{userId}": { "get": { "tags": [ "user-management" ], "summary": "User by ID", "description": "Retrieves a single user by their unique identifier, including their roles, locations, and location group assignments\n\n**Security**\n\nThe requesting user must have the following permission to retrieve a user:\n\n- Administration → Users → View Users", "parameters": [ { "$ref": "#/components/parameters/TenantId" }, { "name": "userId", "in": "path", "description": "The unique identifier of the user to retrieve (UUID format)", "required": true, "schema": { "type": "string" } } ], "responses": { "200": { "description": "User", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/UserDetail" } } } }, "400": { "description": "Bad Request — a parameter value is malformed, of the wrong type, or outside its allowed range." }, "401": { "description": "Unauthorized — the bearer token is missing, invalid or expired, or is not valid for the specified tenant." }, "403": { "description": "Forbidden — the caller lacks the permission required for this operation." }, "404": { "description": "Not Found — the requested resource does not exist, or the supplied continuation token is unknown or has expired." }, "409": { "description": "Conflict — the request conflicts with the current state of the resource and cannot be applied." }, "422": { "description": "Unprocessable Entity — a required parameter is missing, or a supplied parameter value is invalid." }, "429": { "description": "Too Many Requests — the caller has exceeded the rate limit; retry after a short delay." }, "500": { "description": "Internal Server Error — an unexpected error occurred while processing the request." } } } } }, "components": { "parameters": { "TenantId": { "name": "x-r365-context-tenant-id", "in": "header", "required": true, "description": "Identifies the R365 tenant the request applies to. Required on every request.", "schema": { "type": "string" } } }, "schemas": { "UserDetail": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the user." }, "fullName": { "type": "string" }, "username": { "type": "string" }, "defaultLocation": { "$ref": "#/components/schemas/UserDetailLocation" }, "mobileNumber": { "type": "string" }, "email": { "type": "string" }, "inactive": { "type": "boolean", "description": "Indicates whether the user is inactive." }, "allLocationsAccess": { "type": "boolean" }, "allBrandFranchiseeLocationAccess": { "type": "boolean" }, "allReportsAccess": { "type": "boolean" }, "canGrantAccessBeyondPersonalLevel": { "type": "boolean" }, "userRoles": { "type": "array", "items": { "$ref": "#/components/schemas/UserDetailRole" } }, "reportRoles": { "type": "array", "items": { "$ref": "#/components/schemas/UserDetailRole" } }, "locations": { "type": "array", "items": { "$ref": "#/components/schemas/UserDetailLocation" } }, "externalLocations": { "type": "array", "items": { "$ref": "#/components/schemas/UserDetailLocation" } }, "subGroupValues": { "type": "array", "items": { "$ref": "#/components/schemas/UserDetailSubGroupValue" } } }, "additionalProperties": false }, "UserDetailLocation": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the location." }, "name": { "type": "string", "description": "Display name of the location." }, "number": { "type": "string", "description": "Number assigned to the location." } }, "additionalProperties": false }, "UserDetailRole": { "type": "object", "properties": { "id": { "type": "string", "format": "uuid", "description": "Unique identifier of the role." }, "name": { "type": "string", "description": "Display name of the role." } }, "additionalProperties": false }, "UserDetailSubGroupValue": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32", "description": "Unique identifier of the option with location group." }, "subGroupValue": { "type": "string", "nullable": true }, "locationGroup": { "$ref": "#/components/schemas/EntityReferenceLongGet" } }, "additionalProperties": false }, "EntityReferenceLongGet": { "type": "object", "properties": { "id": { "type": "integer", "format": "int64", "description": "Unique identifier of the entity reference long." }, "name": { "type": "string", "nullable": true, "description": "Display name of the entity reference long." } }, "additionalProperties": false } }, "securitySchemes": { "Bearer": { "type": "http", "scheme": "Bearer" } } } } ````