Get User
Used to retrieve a specific user's details by their ID.
API Endpoint
| Property | Value |
|---|---|
| Request Method | GET |
| Request URL | https://api.seliseblocks.com/idp/v1/Iam/GetUser |
Request
Request Example
curl -X GET 'https://api.seliseblocks.com/idp/v1/Iam/GetUser?Id=user_123&ProjectKey=YOUR_PROJECT_KEY' \
-H 'x-blocks-key: YOUR_PROJECT_KEY'
Request Headers
| Field | Type | Description |
|---|---|---|
| x-blocks-key | string | Project key for authentication. |
Query Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| Id | string | Yes | The unique identifier of the user to retrieve. |
| ProjectKey | string | Yes | The project key for filtering results. |
Response
Success Response
Returns HTTP status 200 OK with user details.
{
"data": {
"itemId": "user_123",
"createdDate": "2026-01-15T10:30:00Z",
"lastUpdatedDate": "2026-03-20T14:00:00Z",
"language": "en-US",
"salutation": "Mr.",
"firstName": "John",
"lastName": "Doe",
"email": "john.doe@example.com",
"userName": "johndoe",
"phoneNumber": "+1234567890",
"memberships": [
{
"organizationId": "org_123",
"roles": ["admin"],
"permissions": ["read", "write", "delete"]
}
],
"active": true,
"isVarified": true,
"profileImageUrl": "https://example.com/image.jpg",
"mfaEnabled": true,
"isMfaVerified": true,
"userMfaType": 1,
"userCreationType": 0,
"lastLoggedInTime": "2026-03-20T10:00:00Z",
"lastLoggedInDeviceInfo": "Windows Chrome",
"logInCount": 42
},
"errors": {}
}
Response Fields
| Field | Type | Description |
|---|---|---|
| itemId | string | Unique user identifier. |
| createdDate | string(date-time) | Account creation date. |
| lastUpdatedDate | string(date-time) | Last update date. |
| language | string | User's preferred language. |
| salutation | string | User's salutation. |
| firstName | string | User's first name. |
| lastName | string | User's last name. |
| string | User's email address. | |
| userName | string | User's username. |
| phoneNumber | string | User's phone number. |
| memberships | array | Organization memberships. |
| active | boolean | Whether user is active. |
| isVarified | boolean | Whether email is verified. |
| profileImageUrl | string | User's profile image URL. |
| mfaEnabled | boolean | Whether MFA is enabled. |
| isMfaVerified | boolean | Whether MFA is verified. |
| userMfaType | integer | Type of MFA (0-based). |
| userCreationType | integer | Type of user creation (0-based). |
| lastLoggedInTime | string(date-time) | Last login timestamp. |
| lastLoggedInDeviceInfo | string | Device information from last login. |
| logInCount | integer | Total number of logins. |