Error in user YAML: (<unknown>): mapping values are not allowed in this context at line 5 column 12
---
# UserInfoResponse
The response model from the user info endpoint.
- Full name: `\Logto\Sdk\Oidc\UserInfoResponse`
- Parent class: [`\Logto\Sdk\Models\JsonModel`](../Models/JsonModel.md)
## Properties
### sub
The subject identifier for whom the token is intended (user ID).
```php
public string $sub
```
---
The full name of the user.
public ?string $nameThe username of the user.
public ?string $usernameThe profile picture URL of the user.
public ?string $pictureThe email address of the user.
public ?string $emailWhether the email address is verified.
public ?bool $email_verifiedThe phone number of the user.
public ?string $phone_numberWhether the phone number is verified.
public ?bool $phone_number_verifiedThe user's roles.
public ?array $rolesThe user's organization IDs.
public ?array $organizationsThe user's organization roles.
public ?array $organization_rolesThe custom data of the user, can be any JSON object.
public mixed $custom_dataThe identities of the user, can be a dictionary of key-value pairs, where the key is
the identity type and the value is the UserIdentity object.
public ?array $identitiespublic __construct(string $sub, ?string $name = null, ?string $username = null, ?string $picture = null, ?string $email = null, ?bool $email_verified = null, ?string $phone_number = null, ?bool $phone_number_verified = null, ?array $roles = null, ?array $organizations = null, ?array $organization_roles = null, mixed $custom_data = null, ?array $identities = null, mixed $extra): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$sub |
string | |
$name |
?string | |
$username |
?string | |
$picture |
?string | |
$email |
?string | |
$email_verified |
?bool | |
$phone_number |
?string | |
$phone_number_verified |
?bool | |
$roles |
?array | |
$organizations |
?array | |
$organization_roles |
?array | |
$custom_data |
mixed | |
$identities |
?array | |
$extra |
mixed |
public jsonSerialize(): arrayAutomatically generated from source code comments using phpDocumentor and saggre/phpdocumentor-markdown