Unable to fetch all docs through rest api using resource token got from permission for Cosmos db, Successfully getting data using readOnly secondary token

Dev-Stars 1 Reputation point
2021-12-31T05:45:10.193+00:00

Success created resource token for a resource as below using node-js @azure/cosmos sdk

"dbs/<db-name>/colls/<col-name>/docs/*"

with mode as "All"

But when I am trying to use permission token to fetch all docs, getting error

Insufficient permissions provided in the authorization header for the corresponding request. Please retry with another authorization header

I have also given these details at

https://github.com/Azure/azure-sdk-for-js/issues/4972

Microsoft Identity Manager
Microsoft Identity Manager
A family of Microsoft products that manage a user's digital identity using identity synchronization, certificate management, and user provisioning.
610 questions
Azure Cosmos DB
Azure Cosmos DB
An Azure NoSQL database service for app development.
1,441 questions
Microsoft Partner Center API
Microsoft Partner Center API
Microsoft Partner Center: A Microsoft website for partners that provides access to product support, a partner community, and other partner services.API: A software intermediary that allows two applications to interact with each other.
313 questions
{count} votes