Get current user details
Returns details about currently authenticated user.
This operation can be invoked on behalf of the current user only.
Example cURL requests
Get user details
curl -u admin:password -X GET https://$ZONE_HOST/api/v3/onezone/user
{
"userId": "f1c8b1a37aa7447b22eb65a742d40524",
"fullName": "Rudolf Lingens",
"username": "r.lingens",
"linkedAccounts": [
{
"idp": "github",
"subjectId": "1978f5775ae2dc16730418bf3fc81764"
},
{
"idp": "elixir",
"subjectId": "38bf3fc2f4c16730481764bd775ae2d1"
}
],
"emails": [
"rudolf.lingens@example.com",
"john.doe@example.com"
],
"basicAuthEnabled": false,
"blocked": false,
"creationTime": 1576152793
}
Request Examples
onezone-rest-cli getCurrentUserResponses
Returns the information about user.
Unique user Id.
User's full name (given names + surname).
User's human-readable identifier, unique across the system. Makes it easier to identify the user and can be used for signing in with password.
linkedAccounts array of objects (LinkedAccount) The list of accounts linked to this user.
The list of accounts linked to this user.
Id of the Identity Provider, as specified in Onezone's auth.config.
Unique user Id assigned by the Identity Provider.
User's full name (given names + surname).
User's human-readable identifier, unique across the system. Makes it easier to identify the user and can be used for signing in with password.
The list of user email accounts.
A list of strings denoting user group memberships as acquired from the identity provider. Memberships are in Onedata normalized form.
Custom user data collected upon login, depending on Onezone auth.config.
Denotes if this user is allowed to authenticate with username & password.
Denotes if this user's account has been blocked by the administrators.
Timestamp in seconds (UNIX epoch), e.g. 1563819329.
Example
{
"userId": "f1c8b1a37aa7447b22eb65a742d40524",
"fullName": "Rudolf Lingens",
"username": "r.lingens",
"linkedAccounts": [
{
"idp": "github",
"subjectId": "1978f5775ae2dc16730418bf3fc81764"
},
{
"idp": "elixir",
"subjectId": "38bf3fc2f4c16730481764bd775ae2d1"
}
],
"emails": [
"rudolf.lingens@example.com",
"john.doe@example.com"
],
"basicAuthEnabled": false,
"blocked": false,
"creationTime": 1576152793
}Invalid request.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Forbidden request.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Resource not found..
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}Internal server error.
error object Object describing an error.
Object describing an error.
String identifying the error type. Does not change between error instances.
Human readable error description. May contain information specific to given error instance.
Details about the error instance. The object schema is specific to each error type.
Example
{
"error": {
"id": "badValueString",
"details": {
"key": "name"
},
"description": "Bad value: provided \"name\" must be a string."
}
}