Directory Manager API

Hi, has anyone made experience with the API implementation? We try to get user information via API call but it always ends in error: 404 - File or directory not found. The documentation doesn#t clearly state what attribute is needed for {useridentity}. We assume its the objectguid in Active Directory?

https://machinename:4443/GroupIDDataService/api/IdentityStores/{identityStoreId}/Users/{userIdentity}

Thanks a lot!!!

Best regards, Vasco

Indeed. The identity of the object is the ObjectGUID in case of API.

3 Likes

Hello Qasim,
thanks for the clearification!! The next question would be, why it fails with “File or directory not found” when we make the call.
We try it like this:
…/GroupIDDataService/api/IdentityStores/2/Users/aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
Where 2 is our IdentityStoreID and aaaaa… is the objectguid from our AD.

Any thoughts are appreciated!

Best regards, Vasco

Hello Vasco,

I am assuming that you were able to generate a bearer token first as well as confirmed that it is not expired. Moreover, can you please confirm the following:

  • Which version of GroupID are you currently on?
  • Are you using GET method to execute this call?

Syntax that you shared is correct, so I would like to know the other details that are related to this API Call.

Hoping to hear back from you.

1 Like

Hello Quasim,
sorry for the late reply, work got in my way :smiley:

We are on Version 11.1.25134.03

We are using Postman to accomplish this, here we can authenticate as documented and receive a bearer token from the api. We use this in Postman to authenticate and use a get method to receive the described information.

After your last post I tried to authenticate with garbage in the bearer token authentication and the result was the same. So I’m currently suspecting that postman is not correctly delivering the bearer token. I’ll try other ways to deliver the token and post my progress here.

Best regards, Vasco

Hello Vasco,

Thank you so much for the update. Just make sure that the command should be sent as GET method. My tests are also using Postman and it works for me.

I’ll look forward to your update and we’ll work accordingly. Have a wonderful day.