Skip to main content

Policies and Resources do not return sub clients with API

Thread solved
Beginner
Posts: 4
Comments: 2

Hello,

when quering resources or Policies Only the main client is returned if you have a partner with subclients those are not returned.

When i Query Agents i do get sub client Agents.

Is this by design? and if yes How am i able to get those sub items without  having to use another API client

0 Users found this helpful
Forum Member
Posts: 3
Comments: 82

You need to exchange your partner-issued JWT token to a token scoped to a customer tenant.

  1. Receive a regular JWT token using client_id and client_secret
  2. Use POST /bc/idp/token {“grant_type”:” urn:ietf:params:oauth:grant-type:jwt-bearer", “assertion”:”<here is token from the previous call>”
    “scope”:” urn:acronis.com:tenant-id:<customer_tenant_uuid>” with
    “Content-Type”: “application/x-www-form-urlencoded” header and the token from p.1 as an authorization token
  3. The result will be a JSON, take access_token, and use in all protection related operations for that specific customer_tenant_uuid.

Here is an example https://www.postman.com/grey-rocket-585331/workspace/acronis-cyber-platform-s-public-workspace/request/5763797-543c3a5e-3f7c-473b-96bf-999296af56a6 

Beginner
Posts: 4
Comments: 2

Thank you for the answer. we got it working.