Chilkat Online Tools

C / Atlassian Confluence Cloud / Get current user

Back to Collection Items

#include <C_CkHttp.h>
#include <C_CkJsonObject.h>
#include <C_CkHttpResponse.h>
#include <C_CkStringBuilder.h>

void ChilkatSample(void)
    {
    HCkHttp http;
    BOOL success;
    HCkJsonObject queryParams;
    HCkHttpResponse resp;
    HCkStringBuilder sbResponseBody;
    HCkJsonObject jResp;
    int respStatusCode;
    const char *operation;
    const char *targetType;
    const char *value;
    const char *v_expandableValue;
    const char *UserValue;
    const char *GroupValue;
    const char *Operation;
    const char *TargetType;
    BOOL anonymousAccess;
    BOOL unlicensedAccess;
    const char *v_type;
    const char *accountId;
    const char *accountType;
    const char *email;
    const char *publicName;
    const char *Path;
    int Width;
    int Height;
    BOOL IsDefault;
    const char *displayName;
    const char *Operations;
    const char *Details;
    const char *PersonalSpace;
    const char *username;
    const char *userKey;
    const char *Value;
    const char *PersonalValue;
    int Id;
    const char *Key;
    const char *Name;
    const char *v_Type;
    const char *Status;
    const char *Settings;
    const char *Metadata;
    const char *v_expandableOperations;
    const char *LookAndFeel;
    const char *Permissions;
    const char *Icon;
    const char *Description;
    const char *Theme;
    const char *History;
    const char *Homepage;
    const char *IconPath;
    int IconWidth;
    int IconHeight;
    BOOL IconIsDefault;
    const char *PlainValue;
    const char *Representation;
    const char *ViewValue;
    const char *ViewRepresentation;
    const char *HomepageValue;
    int Start;
    int Limit;
    int Size;
    BOOL RouteOverrideEnabled;
    const char *Color;
    const char *LinksColor;
    const char *HoverOrFocusValue;
    const char *ColorValue;
    const char *BackgroundColorValue;
    const char *ButtonValue;
    const char *PrimaryNavigationValue;
    const char *SecondaryNavigationValue;
    const char *SearchValue;
    const char *ScreenValue;
    const char *ContainerValue;
    const char *HeaderValue;
    const char *BodyValue;
    const char *BordersAndDividersColor;
    const char *CreatedDate;
    int i;
    int count_i;

    // This example assumes the Chilkat API to have been previously unlocked.
    // See Global Unlock Sample for sample code.

    http = CkHttp_Create();

    queryParams = CkJsonObject_Create();
    CkJsonObject_UpdateString(queryParams,"expand","<string>");
    CkJsonObject_UpdateString(queryParams,"expand","<string>");

    // Adds the "Authorization: Bearer <access_token>" header.
    CkHttp_putAuthToken(http,"<access_token>");

    resp = CkHttp_QuickRequestParams(http,"GET","https://your-domain.atlassian.net/wiki/rest/api/user/current",queryParams);
    if (CkHttp_getLastMethodSuccess(http) == FALSE) {
        printf("%s\n",CkHttp_lastErrorText(http));
        CkHttp_Dispose(http);
        CkJsonObject_Dispose(queryParams);
        return;
    }

    sbResponseBody = CkStringBuilder_Create();
    CkHttpResponse_GetBodySb(resp,sbResponseBody);

    jResp = CkJsonObject_Create();
    CkJsonObject_LoadSb(jResp,sbResponseBody);
    CkJsonObject_putEmitCompact(jResp,FALSE);

    printf("Response Body:\n");
    printf("%s\n",CkJsonObject_emit(jResp));

    respStatusCode = CkHttpResponse_getStatusCode(resp);
    printf("Response Status Code = %d\n",respStatusCode);
    if (respStatusCode >= 400) {
        printf("Response Header:\n");
        printf("%s\n",CkHttpResponse_header(resp));
        printf("Failed.\n");
        CkHttpResponse_Dispose(resp);
        CkHttp_Dispose(http);
        CkJsonObject_Dispose(queryParams);
        CkStringBuilder_Dispose(sbResponseBody);
        CkJsonObject_Dispose(jResp);
        return;
    }

    CkHttpResponse_Dispose(resp);

    // Sample JSON response:
    // (Sample code for parsing the JSON response is shown below)

    // {
    //   "type": "unknown",
    //   "accountId": "sit consectetur",
    //   "accountType": "atlassian",
    //   "email": "do",
    //   "publicName": "et nostrud mollit id",
    //   "profilePicture": {
    //     "path": "eiusmod Excepteur",
    //     "width": 61811707,
    //     "height": -27758421,
    //     "isDefault": true
    //   },
    //   "displayName": "eiusmod pariatur aliqua cupidatat",
    //   "_expandable": {
    //     "operations": "officia nu",
    //     "details": "exercitation ipsum elit tempor laborum",
    //     "personalSpace": "exercitation re"
    //   },
    //   "_links": {},
    //   "username": "sed velit Ut",
    //   "userKey": "labore anim",
    //   "operations": [
    //     {
    //       "operation": "use",
    //       "targetType": "application"
    //     },
    //     {
    //       "operation": "restore",
    //       "targetType": "space"
    //     }
    //   ],
    //   "details": {
    //     "business": {
    //       "value": "<Error: Too many levels of nesting to fake this schema>"
    //     },
    //     "personal": {
    //       "value": "<Error: Too many levels of nesting to fake this schema>"
    //     }
    //   },
    //   "personalSpace": {
    //     "id": -69293677,
    //     "key": "minim",
    //     "name": "adipisicing minim nulla nisi consequat",
    //     "type": "reprehenderit",
    //     "status": "amet officia pariatur sed",
    //     "_expandable": {
    //       "settings": "deserunt dolore velit laborum",
    //       "metadata": "ullamco quis non sunt",
    //       "operations": "qui aliquip",
    //       "lookAndFeel": "eiusmod cillum ex",
    //       "permissions": "in ullamco",
    //       "icon": "veniam quis",
    //       "description": "officia adip",
    //       "theme": "ea nisi",
    //       "history": "aliquip est irure",
    //       "homepage": "aliqua est deserunt"
    //     },
    //     "_links": {},
    //     "icon": {
    //       "path": "adipisicing sed officia",
    //       "width": 33631448,
    //       "height": -10767970,
    //       "isDefault": true
    //     },
    //     "description": {
    //       "plain": {
    //         "value": "cupidatat nulla",
    //         "representation": "view",
    //         "embeddedContent": [
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         ]
    //       },
    //       "view": {
    //         "value": "magna aliquip ea",
    //         "representation": "plain",
    //         "embeddedContent": [
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         ]
    //       }
    //     },
    //     "homepage": {
    //       "value": "<Circular reference to #/components/schemas/Content detected>"
    //     },
    //     "metadata": {
    //       "labels": {
    //         "results": [
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         ],
    //         "start": 58105433,
    //         "limit": 10735114,
    //         "size": -29792214,
    //         "_links": {}
    //       }
    //     },
    //     "operations": [
    //       {
    //         "operation": "delete",
    //         "targetType": "blogpost"
    //       },
    //       {
    //         "operation": "restore",
    //         "targetType": "blogpost"
    //       }
    //     ],
    //     "permissions": [
    //       {
    //         "subjects": {
    //           "_expandable": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           "user": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           "group": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         },
    //         "operation": {
    //           "operation": "create",
    //           "targetType": "page"
    //         },
    //         "anonymousAccess": false,
    //         "unlicensedAccess": false
    //       },
    //       {
    //         "subjects": {
    //           "_expandable": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           "user": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           },
    //           "group": {
    //             "value": "<Error: Too many levels of nesting to fake this schema>"
    //           }
    //         },
    //         "operation": {
    //           "operation": "restore",
    //           "targetType": "blogpost"
    //         },
    //         "anonymousAccess": false,
    //         "unlicensedAccess": false
    //       }
    //     ],
    //     "settings": {
    //       "routeOverrideEnabled": false,
    //       "_links": {}
    //     },
    //     "theme": {},
    //     "lookAndFeel": {
    //       "headings": {
    //         "color": "<string>"
    //       },
    //       "links": {
    //         "color": "<string>"
    //       },
    //       "menus": {
    //         "hoverOrFocus": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         },
    //         "color": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         }
    //       },
    //       "header": {
    //         "backgroundColor": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         },
    //         "button": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         },
    //         "primaryNavigation": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         },
    //         "secondaryNavigation": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         },
    //         "search": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         }
    //       },
    //       "content": {
    //         "screen": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         },
    //         "container": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         },
    //         "header": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         },
    //         "body": {
    //           "value": "<Error: Too many levels of nesting to fake this schema>"
    //         }
    //       },
    //       "bordersAndDividers": {
    //         "color": "<string>"
    //       }
    //     },
    //     "history": {
    //       "createdDate": "2014-12-12T23:08:45.947Z"
    //     }
    //   }
    // }

    // Sample code for parsing the JSON response...
    // Use this online tool to generate parsing code from sample JSON: Generate JSON Parsing Code

    // Chilkat functions returning "const char *" return a pointer to temporary internal memory owned and managed by Chilkat.

    v_type = CkJsonObject_stringOf(jResp,"type");
    accountId = CkJsonObject_stringOf(jResp,"accountId");
    accountType = CkJsonObject_stringOf(jResp,"accountType");
    email = CkJsonObject_stringOf(jResp,"email");
    publicName = CkJsonObject_stringOf(jResp,"publicName");
    Path = CkJsonObject_stringOf(jResp,"profilePicture.path");
    Width = CkJsonObject_IntOf(jResp,"profilePicture.width");
    Height = CkJsonObject_IntOf(jResp,"profilePicture.height");
    IsDefault = CkJsonObject_BoolOf(jResp,"profilePicture.isDefault");
    displayName = CkJsonObject_stringOf(jResp,"displayName");
    Operations = CkJsonObject_stringOf(jResp,"_expandable.operations");
    Details = CkJsonObject_stringOf(jResp,"_expandable.details");
    PersonalSpace = CkJsonObject_stringOf(jResp,"_expandable.personalSpace");
    username = CkJsonObject_stringOf(jResp,"username");
    userKey = CkJsonObject_stringOf(jResp,"userKey");
    Value = CkJsonObject_stringOf(jResp,"details.business.value");
    PersonalValue = CkJsonObject_stringOf(jResp,"details.personal.value");
    Id = CkJsonObject_IntOf(jResp,"personalSpace.id");
    Key = CkJsonObject_stringOf(jResp,"personalSpace.key");
    Name = CkJsonObject_stringOf(jResp,"personalSpace.name");
    v_Type = CkJsonObject_stringOf(jResp,"personalSpace.type");
    Status = CkJsonObject_stringOf(jResp,"personalSpace.status");
    Settings = CkJsonObject_stringOf(jResp,"personalSpace._expandable.settings");
    Metadata = CkJsonObject_stringOf(jResp,"personalSpace._expandable.metadata");
    v_expandableOperations = CkJsonObject_stringOf(jResp,"personalSpace._expandable.operations");
    LookAndFeel = CkJsonObject_stringOf(jResp,"personalSpace._expandable.lookAndFeel");
    Permissions = CkJsonObject_stringOf(jResp,"personalSpace._expandable.permissions");
    Icon = CkJsonObject_stringOf(jResp,"personalSpace._expandable.icon");
    Description = CkJsonObject_stringOf(jResp,"personalSpace._expandable.description");
    Theme = CkJsonObject_stringOf(jResp,"personalSpace._expandable.theme");
    History = CkJsonObject_stringOf(jResp,"personalSpace._expandable.history");
    Homepage = CkJsonObject_stringOf(jResp,"personalSpace._expandable.homepage");
    IconPath = CkJsonObject_stringOf(jResp,"personalSpace.icon.path");
    IconWidth = CkJsonObject_IntOf(jResp,"personalSpace.icon.width");
    IconHeight = CkJsonObject_IntOf(jResp,"personalSpace.icon.height");
    IconIsDefault = CkJsonObject_BoolOf(jResp,"personalSpace.icon.isDefault");
    PlainValue = CkJsonObject_stringOf(jResp,"personalSpace.description.plain.value");
    Representation = CkJsonObject_stringOf(jResp,"personalSpace.description.plain.representation");
    ViewValue = CkJsonObject_stringOf(jResp,"personalSpace.description.view.value");
    ViewRepresentation = CkJsonObject_stringOf(jResp,"personalSpace.description.view.representation");
    HomepageValue = CkJsonObject_stringOf(jResp,"personalSpace.homepage.value");
    Start = CkJsonObject_IntOf(jResp,"personalSpace.metadata.labels.start");
    Limit = CkJsonObject_IntOf(jResp,"personalSpace.metadata.labels.limit");
    Size = CkJsonObject_IntOf(jResp,"personalSpace.metadata.labels.size");
    RouteOverrideEnabled = CkJsonObject_BoolOf(jResp,"personalSpace.settings.routeOverrideEnabled");
    Color = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.headings.color");
    LinksColor = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.links.color");
    HoverOrFocusValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.menus.hoverOrFocus.value");
    ColorValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.menus.color.value");
    BackgroundColorValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.header.backgroundColor.value");
    ButtonValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.header.button.value");
    PrimaryNavigationValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.header.primaryNavigation.value");
    SecondaryNavigationValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.header.secondaryNavigation.value");
    SearchValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.header.search.value");
    ScreenValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.content.screen.value");
    ContainerValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.content.container.value");
    HeaderValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.content.header.value");
    BodyValue = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.content.body.value");
    BordersAndDividersColor = CkJsonObject_stringOf(jResp,"personalSpace.lookAndFeel.bordersAndDividers.color");
    CreatedDate = CkJsonObject_stringOf(jResp,"personalSpace.history.createdDate");
    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"operations");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        operation = CkJsonObject_stringOf(jResp,"operations[i].operation");
        targetType = CkJsonObject_stringOf(jResp,"operations[i].targetType");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"personalSpace.description.plain.embeddedContent");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        value = CkJsonObject_stringOf(jResp,"personalSpace.description.plain.embeddedContent[i].value");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"personalSpace.description.view.embeddedContent");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        value = CkJsonObject_stringOf(jResp,"personalSpace.description.view.embeddedContent[i].value");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"personalSpace.metadata.labels.results");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        value = CkJsonObject_stringOf(jResp,"personalSpace.metadata.labels.results[i].value");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"personalSpace.operations");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        operation = CkJsonObject_stringOf(jResp,"personalSpace.operations[i].operation");
        targetType = CkJsonObject_stringOf(jResp,"personalSpace.operations[i].targetType");
        i = i + 1;
    }

    i = 0;
    count_i = CkJsonObject_SizeOfArray(jResp,"personalSpace.permissions");
    while (i < count_i) {
        CkJsonObject_putI(jResp,i);
        v_expandableValue = CkJsonObject_stringOf(jResp,"personalSpace.permissions[i].subjects._expandable.value");
        UserValue = CkJsonObject_stringOf(jResp,"personalSpace.permissions[i].subjects.user.value");
        GroupValue = CkJsonObject_stringOf(jResp,"personalSpace.permissions[i].subjects.group.value");
        Operation = CkJsonObject_stringOf(jResp,"personalSpace.permissions[i].operation.operation");
        TargetType = CkJsonObject_stringOf(jResp,"personalSpace.permissions[i].operation.targetType");
        anonymousAccess = CkJsonObject_BoolOf(jResp,"personalSpace.permissions[i].anonymousAccess");
        unlicensedAccess = CkJsonObject_BoolOf(jResp,"personalSpace.permissions[i].unlicensedAccess");
        i = i + 1;
    }



    CkHttp_Dispose(http);
    CkJsonObject_Dispose(queryParams);
    CkStringBuilder_Dispose(sbResponseBody);
    CkJsonObject_Dispose(jResp);

    }

Curl Command

curl -G -d "expand=%3Cstring%3E"
	-d "expand=%3Cstring%3E"
	-H "Authorization: Bearer <access_token>"
https://your-domain.atlassian.net/wiki/rest/api/user/current

Postman Collection Item JSON

{
  "name": "Get current user",
  "request": {
    "auth": {
      "type": "oauth2"
    },
    "method": "GET",
    "header": [
    ],
    "url": {
      "raw": "{{baseUrl}}/api/user/current?expand=<string>&expand=<string>",
      "host": [
        "{{baseUrl}}"
      ],
      "path": [
        "api",
        "user",
        "current"
      ],
      "query": [
        {
          "key": "expand",
          "value": "<string>",
          "description": "A multi-value parameter indicating which properties of the user to\nexpand.\n\n  - `operations` returns the operations that the user is allowed to do.\n  - `details.personal` returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - `details.business` returns the 'Company' details in the user's profile, like the 'Position' and 'Department'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - personalSpace returns the user's personal space, if it exists."
        },
        {
          "key": "expand",
          "value": "<string>",
          "description": "A multi-value parameter indicating which properties of the user to\nexpand.\n\n  - `operations` returns the operations that the user is allowed to do.\n  - `details.personal` returns the 'Personal' details in the user's profile, like the 'Email' and 'Phone'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - `details.business` returns the 'Company' details in the user's profile, like the 'Position' and 'Department'.\n  Note that these fields have been deprecated due to privacy changes. See the\n  [migration guide](https://developer.atlassian.com/cloud/confluence/deprecation-notice-user-privacy-api-migration-guide/)\n  for details.\n  - personalSpace returns the user's personal space, if it exists."
        }
      ]
    },
    "description": "Returns the currently logged-in user. This includes information about\nthe user, like the display name, userKey, account ID, profile picture,\nand more.\n\n**[Permissions](https://confluence.atlassian.com/x/_AozKw) required**:\nPermission to access the Confluence site ('Can use' global permission)."
  },
  "response": [
    {
      "name": "Returned if the current user is returned.",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": {
              "content": "Added as a part of security scheme: oauth2",
              "type": "text/plain"
            },
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/user/current?expand=<string>&expand=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "user",
            "current"
          ],
          "query": [
            {
              "key": "expand",
              "value": "<string>"
            },
            {
              "key": "expand",
              "value": "<string>"
            }
          ]
        }
      },
      "status": "OK",
      "code": 200,
      "_postman_previewlanguage": "json",
      "header": [
        {
          "key": "Content-Type",
          "value": "application/json"
        }
      ],
      "cookie": [
      ],
      "body": "{\n \"type\": \"unknown\",\n \"accountId\": \"sit consectetur\",\n \"accountType\": \"atlassian\",\n \"email\": \"do\",\n \"publicName\": \"et nostrud mollit id\",\n \"profilePicture\": {\n  \"path\": \"eiusmod Excepteur\",\n  \"width\": 61811707,\n  \"height\": -27758421,\n  \"isDefault\": true\n },\n \"displayName\": \"eiusmod pariatur aliqua cupidatat\",\n \"_expandable\": {\n  \"operations\": \"officia nu\",\n  \"details\": \"exercitation ipsum elit tempor laborum\",\n  \"personalSpace\": \"exercitation re\"\n },\n \"_links\": {},\n \"username\": \"sed velit Ut\",\n \"userKey\": \"labore anim\",\n \"operations\": [\n  {\n   \"operation\": \"use\",\n   \"targetType\": \"application\"\n  },\n  {\n   \"operation\": \"restore\",\n   \"targetType\": \"space\"\n  }\n ],\n \"details\": {\n  \"business\": {\n   \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n  },\n  \"personal\": {\n   \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n  }\n },\n \"personalSpace\": {\n  \"id\": -69293677,\n  \"key\": \"minim\",\n  \"name\": \"adipisicing minim nulla nisi consequat\",\n  \"type\": \"reprehenderit\",\n  \"status\": \"amet officia pariatur sed\",\n  \"_expandable\": {\n   \"settings\": \"deserunt dolore velit laborum\",\n   \"metadata\": \"ullamco quis non sunt\",\n   \"operations\": \"qui aliquip\",\n   \"lookAndFeel\": \"eiusmod cillum ex\",\n   \"permissions\": \"in ullamco\",\n   \"icon\": \"veniam quis\",\n   \"description\": \"officia adip\",\n   \"theme\": \"ea nisi\",\n   \"history\": \"aliquip est irure\",\n   \"homepage\": \"aliqua est deserunt\"\n  },\n  \"_links\": {},\n  \"icon\": {\n   \"path\": \"adipisicing sed officia\",\n   \"width\": 33631448,\n   \"height\": -10767970,\n   \"isDefault\": true\n  },\n  \"description\": {\n   \"plain\": {\n    \"value\": \"cupidatat nulla\",\n    \"representation\": \"view\",\n    \"embeddedContent\": [\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    ]\n   },\n   \"view\": {\n    \"value\": \"magna aliquip ea\",\n    \"representation\": \"plain\",\n    \"embeddedContent\": [\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    ]\n   }\n  },\n  \"homepage\": {\n   \"value\": \"<Circular reference to #/components/schemas/Content detected>\"\n  },\n  \"metadata\": {\n   \"labels\": {\n    \"results\": [\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    ],\n    \"start\": 58105433,\n    \"limit\": 10735114,\n    \"size\": -29792214,\n    \"_links\": {}\n   }\n  },\n  \"operations\": [\n   {\n    \"operation\": \"delete\",\n    \"targetType\": \"blogpost\"\n   },\n   {\n    \"operation\": \"restore\",\n    \"targetType\": \"blogpost\"\n   }\n  ],\n  \"permissions\": [\n   {\n    \"subjects\": {\n     \"_expandable\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"user\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"group\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    },\n    \"operation\": {\n     \"operation\": \"create\",\n     \"targetType\": \"page\"\n    },\n    \"anonymousAccess\": false,\n    \"unlicensedAccess\": false\n   },\n   {\n    \"subjects\": {\n     \"_expandable\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"user\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     },\n     \"group\": {\n      \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n     }\n    },\n    \"operation\": {\n     \"operation\": \"restore\",\n     \"targetType\": \"blogpost\"\n    },\n    \"anonymousAccess\": false,\n    \"unlicensedAccess\": false\n   }\n  ],\n  \"settings\": {\n   \"routeOverrideEnabled\": false,\n   \"_links\": {}\n  },\n  \"theme\": {},\n  \"lookAndFeel\": {\n   \"headings\": {\n    \"color\": \"<string>\"\n   },\n   \"links\": {\n    \"color\": \"<string>\"\n   },\n   \"menus\": {\n    \"hoverOrFocus\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"color\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n   },\n   \"header\": {\n    \"backgroundColor\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"button\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"primaryNavigation\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"secondaryNavigation\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"search\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n   },\n   \"content\": {\n    \"screen\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"container\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"header\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    },\n    \"body\": {\n     \"value\": \"<Error: Too many levels of nesting to fake this schema>\"\n    }\n   },\n   \"bordersAndDividers\": {\n    \"color\": \"<string>\"\n   }\n  },\n  \"history\": {\n   \"createdDate\": \"2014-12-12T23:08:45.947Z\"\n  }\n }\n}"
    },
    {
      "name": "Returned if the calling user does not have permission to use\nConfluence.",
      "originalRequest": {
        "method": "GET",
        "header": [
          {
            "description": {
              "content": "Added as a part of security scheme: oauth2",
              "type": "text/plain"
            },
            "key": "Authorization",
            "value": "<token>"
          }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/user/current?expand=<string>&expand=<string>",
          "host": [
            "{{baseUrl}}"
          ],
          "path": [
            "api",
            "user",
            "current"
          ],
          "query": [
            {
              "key": "expand",
              "value": "<string>"
            },
            {
              "key": "expand",
              "value": "<string>"
            }
          ]
        }
      },
      "status": "Forbidden",
      "code": 403,
      "_postman_previewlanguage": "text",
      "header": [
        {
          "key": "Content-Type",
          "value": "text/plain"
        }
      ],
      "cookie": [
      ],
      "body": ""
    }
  ]
}