Get User (Current)
GET /obp/v7.0.0/users/current
OBPv7.0.0-getCurrentUser No role required User
Get the logged in user.
In v7.0.0 the response includes the user's own mobile phone fields:
mobile_phone_number, mobile_phone_number_is_validated and
mobile_phone_number_validated_date. These belong to the authenticated
user (global across banks) and are distinct from the bank-scoped
mobile_phone_number on Customer, which is KYC data of a legal entity.
Authentication is required.
User Authentication is Required. The User must be logged in. The Application must also be authenticated.
JSON response body fields (10)
- felixsmith@example.com
- entitlements
- list
- provider
- ETHEREUM
- provider_id
- user_id
- 9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1
- username
- felixsmith
- mobile_phone_number
- +49 30 901820
- mobile_phone_number_is_validated
- mobile_phone_number_is_validated
- mobile_phone_number_validated_date
- mobile_phone_number_validated_date
Example success response
{
"user_id": "9ca9a7e4-6d02-40e3-a129-0b2bf89de9b1",
"email": "felixsmith@example.com",
"provider_id": "Chris",
"provider": "http://127.0.0.1:8080",
"username": "felixsmith",
"mobile_phone_number": "+44 07972 444 876",
"mobile_phone_number_is_validated": true,
"mobile_phone_number_validated_date": "1100-01-01T01:01:01Z",
"entitlements": {
"list": []
}
}Possible errors (2)
- OBP-20001: User not logged in. Authentication is required!
- OBP-50000: Unknown Error.