Retrieving DevTest User list from IAM
search cancel

Retrieving DevTest User list from IAM

book

Article ID: 206902

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Is there a way to get a list of users for each specific Registry/IAM server?

Environment

Release : 10.7 an up

Component : CA Service Virtualization

Resolution

We do not have this functionality OOTB, but you can use Keycloak API's to retrieve that data. 

The call you would make is GET 'https://localhost:51111/auth/admin/realms/service_virtualization/users'

here are some examples

1. Using Curl 

curl --location --request GET 'https://localhost:51111/auth/admin/realms/service_virtualization/users' --header 'Accept: application/json' --header 'Authorization: <Bearer TOKEN>'
 
To get the Bearer TOKEN, the customer should log in to IAM UI and get the token from the Network tab:
 
2. Rest Step or Postman