Chilkat Online Tools

DataFlex / Atlassian Confluence Cloud / Get current user

Back to Collection Items

Use ChilkatAx-win32.pkg

Procedure Test
    Handle hoHttp
    Boolean iSuccess
    Variant vQueryParams
    Handle hoQueryParams
    Variant vResp
    Handle hoResp
    Variant vSbResponseBody
    Handle hoSbResponseBody
    Handle hoJResp
    Integer iRespStatusCode
    String sOperation
    String sTargetType
    String sValue
    String sV_expandableValue
    String sUserValue
    String sGroupValue
    String sOperation
    String sTargetType
    Boolean iAnonymousAccess
    Boolean iUnlicensedAccess
    String sV_type
    String sAccountId
    String sAccountType
    String sEmail
    String sPublicName
    String sPath
    Integer iWidth
    Integer iHeight
    Boolean iIsDefault
    String sDisplayName
    String sOperations
    String sDetails
    String sPersonalSpace
    String sUsername
    String sUserKey
    String sValue
    String sPersonalValue
    Integer iId
    String sKey
    String sName
    String sV_Type
    String sStatus
    String sSettings
    String sMetadata
    String sV_expandableOperations
    String sLookAndFeel
    String sPermissions
    String sIcon
    String sDescription
    String sTheme
    String sHistory
    String sHomepage
    String sIconPath
    Integer iIconWidth
    Integer iIconHeight
    Boolean iIconIsDefault
    String sPlainValue
    String sRepresentation
    String sViewValue
    String sViewRepresentation
    String sHomepageValue
    Integer iStart
    Integer iLimit
    Integer iSize
    Boolean iRouteOverrideEnabled
    String sColor
    String sLinksColor
    String sHoverOrFocusValue
    String sColorValue
    String sBackgroundColorValue
    String sButtonValue
    String sPrimaryNavigationValue
    String sSecondaryNavigationValue
    String sSearchValue
    String sScreenValue
    String sContainerValue
    String sHeaderValue
    String sBodyValue
    String sBordersAndDividersColor
    String sCreatedDate
    Integer i
    Integer iCount_i
    String sTemp1
    Boolean bTemp1

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

    Get Create (RefClass(cComChilkatHttp)) To hoHttp
    If (Not(IsComObjectCreated(hoHttp))) Begin
        Send CreateComObject of hoHttp
    End

    Get Create (RefClass(cComChilkatJsonObject)) To hoQueryParams
    If (Not(IsComObjectCreated(hoQueryParams))) Begin
        Send CreateComObject of hoQueryParams
    End
    Get ComUpdateString Of hoQueryParams "expand" "<string>" To iSuccess
    Get ComUpdateString Of hoQueryParams "expand" "<string>" To iSuccess

    // Adds the "Authorization: Bearer <access_token>" header.
    Set ComAuthToken Of hoHttp To "<access_token>"

    Get pvComObject of hoQueryParams to vQueryParams
    Get ComQuickRequestParams Of hoHttp "GET" "https://your-domain.atlassian.net/wiki/rest/api/user/current" vQueryParams To vResp
    If (IsComObject(vResp)) Begin
        Get Create (RefClass(cComChilkatHttpResponse)) To hoResp
        Set pvComObject Of hoResp To vResp
    End
    Get ComLastMethodSuccess Of hoHttp To bTemp1
    If (bTemp1 = False) Begin
        Get ComLastErrorText Of hoHttp To sTemp1
        Showln sTemp1
        Procedure_Return
    End

    Get Create (RefClass(cComChilkatStringBuilder)) To hoSbResponseBody
    If (Not(IsComObjectCreated(hoSbResponseBody))) Begin
        Send CreateComObject of hoSbResponseBody
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComGetBodySb Of hoResp vSbResponseBody To iSuccess

    Get Create (RefClass(cComChilkatJsonObject)) To hoJResp
    If (Not(IsComObjectCreated(hoJResp))) Begin
        Send CreateComObject of hoJResp
    End
    Get pvComObject of hoSbResponseBody to vSbResponseBody
    Get ComLoadSb Of hoJResp vSbResponseBody To iSuccess
    Set ComEmitCompact Of hoJResp To False

    Showln "Response Body:"
    Get ComEmit Of hoJResp To sTemp1
    Showln sTemp1

    Get ComStatusCode Of hoResp To iRespStatusCode
    Showln "Response Status Code = " iRespStatusCode
    If (iRespStatusCode >= 400) Begin
        Showln "Response Header:"
        Get ComHeader Of hoResp To sTemp1
        Showln sTemp1
        Showln "Failed."
        Send Destroy of hoResp
        Procedure_Return
    End

    Send Destroy of hoResp

    // 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

    Get ComStringOf Of hoJResp "type" To sV_type
    Get ComStringOf Of hoJResp "accountId" To sAccountId
    Get ComStringOf Of hoJResp "accountType" To sAccountType
    Get ComStringOf Of hoJResp "email" To sEmail
    Get ComStringOf Of hoJResp "publicName" To sPublicName
    Get ComStringOf Of hoJResp "profilePicture.path" To sPath
    Get ComIntOf Of hoJResp "profilePicture.width" To iWidth
    Get ComIntOf Of hoJResp "profilePicture.height" To iHeight
    Get ComBoolOf Of hoJResp "profilePicture.isDefault" To iIsDefault
    Get ComStringOf Of hoJResp "displayName" To sDisplayName
    Get ComStringOf Of hoJResp "_expandable.operations" To sOperations
    Get ComStringOf Of hoJResp "_expandable.details" To sDetails
    Get ComStringOf Of hoJResp "_expandable.personalSpace" To sPersonalSpace
    Get ComStringOf Of hoJResp "username" To sUsername
    Get ComStringOf Of hoJResp "userKey" To sUserKey
    Get ComStringOf Of hoJResp "details.business.value" To sValue
    Get ComStringOf Of hoJResp "details.personal.value" To sPersonalValue
    Get ComIntOf Of hoJResp "personalSpace.id" To iId
    Get ComStringOf Of hoJResp "personalSpace.key" To sKey
    Get ComStringOf Of hoJResp "personalSpace.name" To sName
    Get ComStringOf Of hoJResp "personalSpace.type" To sV_Type
    Get ComStringOf Of hoJResp "personalSpace.status" To sStatus
    Get ComStringOf Of hoJResp "personalSpace._expandable.settings" To sSettings
    Get ComStringOf Of hoJResp "personalSpace._expandable.metadata" To sMetadata
    Get ComStringOf Of hoJResp "personalSpace._expandable.operations" To sV_expandableOperations
    Get ComStringOf Of hoJResp "personalSpace._expandable.lookAndFeel" To sLookAndFeel
    Get ComStringOf Of hoJResp "personalSpace._expandable.permissions" To sPermissions
    Get ComStringOf Of hoJResp "personalSpace._expandable.icon" To sIcon
    Get ComStringOf Of hoJResp "personalSpace._expandable.description" To sDescription
    Get ComStringOf Of hoJResp "personalSpace._expandable.theme" To sTheme
    Get ComStringOf Of hoJResp "personalSpace._expandable.history" To sHistory
    Get ComStringOf Of hoJResp "personalSpace._expandable.homepage" To sHomepage
    Get ComStringOf Of hoJResp "personalSpace.icon.path" To sIconPath
    Get ComIntOf Of hoJResp "personalSpace.icon.width" To iIconWidth
    Get ComIntOf Of hoJResp "personalSpace.icon.height" To iIconHeight
    Get ComBoolOf Of hoJResp "personalSpace.icon.isDefault" To iIconIsDefault
    Get ComStringOf Of hoJResp "personalSpace.description.plain.value" To sPlainValue
    Get ComStringOf Of hoJResp "personalSpace.description.plain.representation" To sRepresentation
    Get ComStringOf Of hoJResp "personalSpace.description.view.value" To sViewValue
    Get ComStringOf Of hoJResp "personalSpace.description.view.representation" To sViewRepresentation
    Get ComStringOf Of hoJResp "personalSpace.homepage.value" To sHomepageValue
    Get ComIntOf Of hoJResp "personalSpace.metadata.labels.start" To iStart
    Get ComIntOf Of hoJResp "personalSpace.metadata.labels.limit" To iLimit
    Get ComIntOf Of hoJResp "personalSpace.metadata.labels.size" To iSize
    Get ComBoolOf Of hoJResp "personalSpace.settings.routeOverrideEnabled" To iRouteOverrideEnabled
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.headings.color" To sColor
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.links.color" To sLinksColor
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.menus.hoverOrFocus.value" To sHoverOrFocusValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.menus.color.value" To sColorValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.header.backgroundColor.value" To sBackgroundColorValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.header.button.value" To sButtonValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.header.primaryNavigation.value" To sPrimaryNavigationValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.header.secondaryNavigation.value" To sSecondaryNavigationValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.header.search.value" To sSearchValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.content.screen.value" To sScreenValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.content.container.value" To sContainerValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.content.header.value" To sHeaderValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.content.body.value" To sBodyValue
    Get ComStringOf Of hoJResp "personalSpace.lookAndFeel.bordersAndDividers.color" To sBordersAndDividersColor
    Get ComStringOf Of hoJResp "personalSpace.history.createdDate" To sCreatedDate
    Move 0 To i
    Get ComSizeOfArray Of hoJResp "operations" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "operations[i].operation" To sOperation
        Get ComStringOf Of hoJResp "operations[i].targetType" To sTargetType
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "personalSpace.description.plain.embeddedContent" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "personalSpace.description.plain.embeddedContent[i].value" To sValue
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "personalSpace.description.view.embeddedContent" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "personalSpace.description.view.embeddedContent[i].value" To sValue
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "personalSpace.metadata.labels.results" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "personalSpace.metadata.labels.results[i].value" To sValue
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "personalSpace.operations" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "personalSpace.operations[i].operation" To sOperation
        Get ComStringOf Of hoJResp "personalSpace.operations[i].targetType" To sTargetType
        Move (i + 1) To i
    Loop

    Move 0 To i
    Get ComSizeOfArray Of hoJResp "personalSpace.permissions" To iCount_i
    While (i < iCount_i)
        Set ComI Of hoJResp To i
        Get ComStringOf Of hoJResp "personalSpace.permissions[i].subjects._expandable.value" To sV_expandableValue
        Get ComStringOf Of hoJResp "personalSpace.permissions[i].subjects.user.value" To sUserValue
        Get ComStringOf Of hoJResp "personalSpace.permissions[i].subjects.group.value" To sGroupValue
        Get ComStringOf Of hoJResp "personalSpace.permissions[i].operation.operation" To sOperation
        Get ComStringOf Of hoJResp "personalSpace.permissions[i].operation.targetType" To sTargetType
        Get ComBoolOf Of hoJResp "personalSpace.permissions[i].anonymousAccess" To iAnonymousAccess
        Get ComBoolOf Of hoJResp "personalSpace.permissions[i].unlicensedAccess" To iUnlicensedAccess
        Move (i + 1) To i
    Loop



End_Procedure

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": ""
    }
  ]
}