API for getting the list of Roles

0 votes
Hi Team, Is there an API that we can use to retrieve the list of roleIds already on the package? thanks, Sara

Reply to: API for getting the list of Roles

0 votes
Hey Sara, Unfortunately, there was not a direct API to retrieve existing role ids yet. Instead, you can use below API:
GET /api/packages/{packageId}/roles
Example response:
By looping through the results array and parsing the role node for Id attribute, you'll find all available role ids. Hope this could help! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer

Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off