Deploy CLI does not export all the client grants

I’m using the deploy CLI to export all my client grants. It creates a JSON directory folder called grants, with a JSON file for each client, but each of these files only supports one grant. For example, I have a file called Group Member.json with the following JSON file:

{
  "client_id": "Group Plan Member App Portl",
  "audience": "http://127.0.0.1:8080/group-app",
  "scope": [
    "full_access"
  ]
}

but in my tenant, the client has 3 API’s enabled.

Hi @zaki.machfj,

Thanks for reaching out to the Auth0 Community!

What you have observed is the expected behavior after you have exported all of your clients’ grants using the Auth0 Deploy CLI.

After the export is complete, it creates a grants folder where it creates a file for each Application assigned to an API with the assigned scopes (permissions).

In this case, you should see 3 separate files for your Group Plan Member App Portl client for each API with the assigned scopes.

Please note that each file can only reference one API.

I hope this helps!

Please let me know if you have any questions.

Thanks,
Rueben

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.