Get User Self
GET
/v1/users/self
const url = 'https://example.com/api/v1/users/self';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/users/self \ --header 'Authorization: <Authorization>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”OK
Media type application/json
object
item
item
object
defaultGroupId
string
email
string
groupIds
Array<string>
id
string
isOwner
boolean
isSuperuser
boolean
name
string
oidcIssuer
string
oidcSubject
string
Example generated
{ "item": { "defaultGroupId": "example", "email": "example", "groupIds": [ "example" ], "id": "example", "isOwner": true, "isSuperuser": true, "name": "example", "oidcIssuer": "example", "oidcSubject": "example" }}