For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI ReferenceRelease notes
DocumentationAPI ReferenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Integration API routes
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • GETGet the user settings for the active user
        • PATCHUpdate the user settings for the active user
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceUser

Get the user settings for the active user

GET
http://localhost:3000/user/settings
GET
/user/settings
$curl http://localhost:3000/user/settings \
> -u "<username>:<password>"
1{
2 "provenance": "Local AAA",
3 "username": "john_doe",
4 "firstname": "John",
5 "memberOf": [
6 {
7 "aaaManaged": true,
8 "groupId": "5cb7b531d06cceb89fd21b1c"
9 }
10 ],
11 "assignedRoles": [
12 {
13 "roleId": "5cb7b531d06cceb89fd21b1c"
14 }
15 ],
16 "inactive": true,
17 "gitTokens": {
18 "GitHub": "string",
19 "GitLab": "string"
20 },
21 "lastLogin": "2018-08-02T15:56:12.912Z",
22 "sso": true,
23 "nameID": "string",
24 "_meta": {
25 "created": "2018-08-02T15:56:12.912Z",
26 "updated": "2018-08-02T15:56:12.912Z"
27 },
28 "email": "name@email.com",
29 "isServiceAccount": true,
30 "loggedIn": true
31}
Returns the user settings for the active user.
Was this page helpful?
Previous

Update the user settings for the active user

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Response

The account document for the logged in user.
provenancestring
AAA provider where account originated
usernamestring
Username for account
firstnamestring
The user's first name
memberOflist of objects
Groups which this account is a part of
assignedRoleslist of objects
Roles assigned to this account
inactiveboolean
Setting for whether account is active or not
gitTokensobject
Tokens used when interacting with Git APIs and features
lastLoginstring
Date and time when the user last logged in
ssoboolean
Whether this is an SSO user
nameIDstring

DEPRECATED: Identifier for SSO account.

_metaobject
emailstring
Email for user
isServiceAccountboolean
Value denoting if an account does not reflect a human user
loggedInboolean
Property used in the getAccounts API to indicate a user is currently logged in

Errors

500
Internal Server Error