If you are unable to create a new account, please email bspsoftware@techdata.com

Author Topic: REST API users call  (Read 1830 times)

Offline patternghost

  • Associate
  • **
  • Join Date: May 2021
  • Posts: 3
  • Forum Citizenship: +0/-0
REST API users call
« on: 26 May 2021 10:28:18 am »
Not sure which forum this belongs in, but has anyone successfully implemented a GET /users call using the Cognos 11.1.7 REST API?  I am trying to use the call to return the ID of a user, but I can't figure out what the call wants.  According to the documentation, it wants a parameter of:
identifier (string(query))
Unique id from Cognos Access Manager Identifier or CAMID of the user. I.e., if a user's CAMID value is CAMID("APPID:u:jdoe@ibm.com"), the value of identifier is jdoe@ibm

Is this a URL parameter sent with a question mark?  Is this a body param?  I have tried many variations an nothing has worked.  I have to assume it is a URL param, when I don't sent it as such I get a 400 and "may not be null".  But it doesn't like anything I send it. 

In the process, all I have is the user name.  I need to call this to get the user ID to send to other endpoints.

Thanks!

Offline patternghost

  • Associate
  • **
  • Join Date: May 2021
  • Posts: 3
  • Forum Citizenship: +0/-0
Re: REST API users call
« Reply #1 on: 27 May 2021 09:56:54 am »
After trial and error, I found that if I send /users?identifier=<namespace> will return all users in the namespace.  I can work with that.

Offline macsir

  • Associate
  • **
  • Join Date: Mar 2023
  • Posts: 2
  • Forum Citizenship: +0/-0
Re: REST API users call
« Reply #2 on: 12 Mar 2023 08:47:47 pm »
After trial and error, I found that if I send /users?identifier=<namespace> will return all users in the namespace.  I can work with that.

Hi, I am tying to do the same but actually haven't got session yet to pass the authentication using the format which IBM suggests. Could you share how you did that? Thanks.
https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=apis-rest-api