{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/outsystems/main/json-schema/outsystems-role-user-response-paginated-response-api-schema.json", "title": "RoleUserResponsePaginatedResponseApi", "x-generated": "2026-10-03", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/outsystems-application-roles-api-openapi.yml#/components/schemas/RoleUserResponsePaginatedResponseApi", "type": "object", "properties": { "results": { "type": [ "array", "null" ], "items": { "$ref": "#/$defs/RoleUserResponse" }, "description": "The List of results." }, "page": { "allOf": [ { "$ref": "#/$defs/PageInfoWithTotalsApi" } ], "description": "The details of the page information." } }, "additionalProperties": false, "$defs": { "ApplicationRoleApiResponse": { "type": "object", "properties": { "key": { "type": "string", "description": "The application role key.", "format": "uuid" }, "name": { "type": [ "string", "null" ], "description": "The name of the application role." }, "environmentKey": { "type": "string", "description": "The environment key.", "format": "uuid" }, "assetKey": { "type": "string", "description": "The asset key.", "format": "uuid" }, "externalKey": { "type": "string", "description": "The unique identifier for an application role independently of the environment.", "format": "uuid" }, "claim": { "type": [ "string", "null" ], "description": "The claim name." }, "portfolioKey": { "type": "string", "description": "The portfolio key associated with the environment.", "format": "uuid" } }, "additionalProperties": false }, "PageInfoWithTotalsApi": { "required": [ "count", "limit", "offset" ], "type": "object", "properties": { "count": { "type": "integer", "description": "The results of the current page.", "format": "int32" }, "limit": { "type": "integer", "description": "The limit of results per page.", "format": "int32" }, "offset": { "type": "integer", "description": "The offset of the current page of results.", "format": "int32" }, "totalResults": { "type": [ "integer", "null" ], "description": "The total number of results.", "format": "int32" }, "nextPageOffset": { "type": [ "integer", "null" ], "description": "The offset of the next page of results. (optional)", "format": "int32", "readOnly": true }, "totalPages": { "type": [ "integer", "null" ], "description": "The total number of pages with results.", "format": "int32", "readOnly": true } }, "additionalProperties": false }, "RoleUserResponse": { "type": "object", "properties": { "key": { "type": "string", "description": "The user's key.", "format": "uuid" }, "name": { "type": [ "string", "null" ], "description": "The user's full name." }, "email": { "type": [ "string", "null" ], "description": "The user's email address." }, "status": { "enum": [ "Active", "Invited", "Inactive", "PendingRegistration" ], "allOf": [ { "$ref": "#/$defs/UserProfileStatus" } ], "description": "The user's status." }, "photoUrl": { "type": [ "string", "null" ], "description": "The user's photo URL." }, "lastLoginAt": { "type": [ "string", "null" ], "description": "The timestamp of the last login (or token refresh) for this user in UTC.", "format": "date-time" }, "_embedded": { "allOf": [ { "$ref": "#/$defs/UserProfileEmbeddedResponse" } ], "description": "The embedded information to provide. (optional)\nOnly available when the request includes the query parameter `embed=`,\ne.g. `embed=userIdentityProviders`" } }, "additionalProperties": false }, "UserIdpProfileResponse": { "type": "object", "properties": { "userKey": { "type": "string", "description": "The user key.", "format": "uuid" }, "identityProviderKey": { "type": "string", "description": "The identity provider key (format: guid).", "format": "uuid" }, "subject": { "type": [ "string", "null" ], "description": "The subject claims in the token issued by the IdP." }, "username": { "type": [ "string", "null" ], "description": "The username." }, "name": { "type": [ "string", "null" ], "description": "The user's full name." }, "email": { "type": [ "string", "null" ], "description": "The user's email address." }, "photoUrl": { "type": [ "string", "null" ], "description": "The user's photo URL." }, "firstLoginAt": { "type": [ "string", "null" ], "description": "The timestamp of the first login for this user using the idp in UTC.", "format": "date-time" }, "lastLoginAt": { "type": [ "string", "null" ], "description": "The timestamp of the last login for this user using the idp in UTC.", "format": "date-time" }, "isEmailVerified": { "type": [ "boolean", "null" ], "description": "The value indicating whether or not the user's email is verified." } }, "additionalProperties": false }, "UserProfileEmbeddedResponse": { "type": "object", "properties": { "applicationRoles": { "type": [ "array", "null" ], "items": { "$ref": "#/$defs/ApplicationRoleApiResponse" }, "description": "List of application roles." }, "userIdentityProviders": { "type": [ "array", "null" ], "items": { "$ref": "#/$defs/UserIdpProfileResponse" }, "description": "List of user identity providers." } }, "additionalProperties": false }, "UserProfileStatus": { "enum": [ "Active", "Invited", "Inactive", "PendingRegistration" ], "type": "string" } } }