How to retrieve DevTest User list from IAM

book

Article ID: 206902

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

My team has many DevTest Registries. Each registry has a corresponding IAM Service and DB. Is there a way to get a list of users for each specific Registry/IAM server?

I need a list of users specific to each registry. 

Environment

Release : 10.4 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
 
 

Attachments