{"type":"api","title":"Get access tokens for the requested user","meta":{"id":"/apps/pubhub/media/cisco-xdr-api-docs/f4e065ff5977829c89df289df08411f83205f526/b3e25fe6-874b-31eb-9376-bf73b47f3863","info":{"title":"IROH Profile Web Service","description":"API to Manage Profile Infos: get information about your profile or users of your org","contact":{"name":"Cisco Security Business Group -- Advanced Threat","email":"cisco-intel-api-support@cisco.com"},"license":{"name":"All Rights Reserved","url":"https://www.cisco.com"},"version":"1.0.107"},"security":[{"oAuth2":["integration:read","private-intel:read","profile:read","inspect:read","users:read","invite:read","enrich:read","oauth:read","response:read","global-intel:read","ao:read","playbook:read"]}],"tags":[{"name":"ProfileClient","description":"ProfileOperations"}],"x-parser-conf":{"serverConfig":"select","overview":{"markdownPath":"reference/profile/overview.md","uri":"profile-api-guide"},"disableAuthEditing":true,"exampleAsDefault":true,"oAuth2":{"clientId":"client-546e34fc-c6bf-4951-ac69-f6d7987a7814","clientSecret":"MYw4_E_tBdFwUwrX6WFYKVD5LQrG2k7XrJ5J046wWE0s1gAKCxJ8VA","proxyEnabled":false},"meta":{"useProxy":true}},"openapi":"3.0.1","servers":[{"url":"https://visibility.amp.cisco.com"}],"securitySchemes":{"oAuth2":{"type":"oauth2","flows":{"clientCredentials":{"tokenUrl":"https://visibility.amp.cisco.com/iroh/oauth2/token","scopes":{"telemetry":"Collect application data for analytics","integration:read":"Manage your modules","private-intel:read":"Access Private Intelligence","admin":"Provide admin privileges","cognitive":"Cognitive Integration","profile:read":"Get your profile information","inspect:read":"Extract Observables and data from text","asset":"Access and modify your assets","event":"Read IROH Events","feedback":"Submit Customer Feedback","sse":"SSE Integration. Manage your Devices.","registry":"Manage registry entries","users:read":"Manage users of your organization","investigation":"Perform threat analysis investigation","invite:read":"Invite users into your organization","casebook":"Access and modify your casebooks","playbook":"Access and modify your playbooks","orbital":"Orbital Integration.","enrich:read":"Query your configured modules for threat intelligence","oauth:read":"Manage OAuth2 Clients","vault":"Grants access to Module Vaults","response:read":"List and execute response actions using configured modules","notification":"Receive notifications from integrations","global-intel:read":"Access AMP Global Intelligence","webhook":"Manage your Webhooks","ao:read":"AO Integration."}}}}}},"spec":{"tags":["Profile"],"summary":"Get access tokens for the requested user.","description":"Returns the tokens for the targeted user. The goal is to be able to use these tokens to switch user accounts. Note the tokens will have the same expiration dates as the token used to call this API.\n\n**Links**:\n - [Data Model](/iroh/doc/iroh-auth/#data-model)\n - [User Model](/iroh/doc/iroh-auth/#user-model)\n - [Org Model](/iroh/doc/iroh-auth/#org-model)","parameters":[{"name":"user-id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"refresh-token":{"type":"string"}},"additionalProperties":false,"$$ref":"#/components/schemas/ProfileUserTokensStrs"}},"application/edn":{"schema":{"type":"object","properties":{"refresh-token":{"type":"string"}},"additionalProperties":false,"$$ref":"#/components/schemas/ProfileUserTokensStrs"}},"application/transit+json":{"schema":{"type":"object","properties":{"refresh-token":{"type":"string"}},"additionalProperties":false,"$$ref":"#/components/schemas/ProfileUserTokensStrs"}},"application/transit+msgpack":{"schema":{"type":"object","properties":{"refresh-token":{"type":"string"}},"additionalProperties":false,"$$ref":"#/components/schemas/ProfileUserTokensStrs"}}},"required":true},"responses":{"200":{"description":"","content":{"application/json":{"schema":{"required":["access_token","expires_in","scope","token_type"],"type":"object","properties":{"access_token":{"type":"string","description":"The access token you could use to call the API"},"scope":{"type":"string","description":"A space separated list of scopes"},"token_type":{"type":"string","description":"The token type (always bearer)","enum":["bearer"]},"expires_in":{"type":"number","description":"The number of seconds after which the access token will expire","format":"double"},"refresh_token":{"type":"string"},"id_token":{"type":"string"}},"additionalProperties":{"type":"object"},"$$ref":"#/components/schemas/TokenResponse"}},"application/edn":{"schema":{"required":["access_token","expires_in","scope","token_type"],"type":"object","properties":{"access_token":{"type":"string","description":"The access token you could use to call the API"},"scope":{"type":"string","description":"A space separated list of scopes"},"token_type":{"type":"string","description":"The token type (always bearer)","enum":["bearer"]},"expires_in":{"type":"number","description":"The number of seconds after which the access token will expire","format":"double"},"refresh_token":{"type":"string"},"id_token":{"type":"string"}},"additionalProperties":{"type":"object"},"$$ref":"#/components/schemas/TokenResponse"}},"application/transit+json":{"schema":{"required":["access_token","expires_in","scope","token_type"],"type":"object","properties":{"access_token":{"type":"string","description":"The access token you could use to call the API"},"scope":{"type":"string","description":"A space separated list of scopes"},"token_type":{"type":"string","description":"The token type (always bearer)","enum":["bearer"]},"expires_in":{"type":"number","description":"The number of seconds after which the access token will expire","format":"double"},"refresh_token":{"type":"string"},"id_token":{"type":"string"}},"additionalProperties":{"type":"object"},"$$ref":"#/components/schemas/TokenResponse"}},"application/transit+msgpack":{"schema":{"required":["access_token","expires_in","scope","token_type"],"type":"object","properties":{"access_token":{"type":"string","description":"The access token you could use to call the API"},"scope":{"type":"string","description":"A space separated list of scopes"},"token_type":{"type":"string","description":"The token type (always bearer)","enum":["bearer"]},"expires_in":{"type":"number","description":"The number of seconds after which the access token will expire","format":"double"},"refresh_token":{"type":"string"},"id_token":{"type":"string"}},"additionalProperties":{"type":"object"},"$$ref":"#/components/schemas/TokenResponse"}}}}},"x-no-doc":false,"x-codegen-request-body-name":"ProfileUserTokensStrs","security":[{"oAuth2":["integration:read","private-intel:read","profile:read","inspect:read","users:read","invite:read","enrich:read","oauth:read","response:read","global-intel:read","ao:read","playbook:read"]}],"method":"post","path":"/iroh/profile/get-user-tokens/{user-id}"}}