[LSEG DataScope Select - REST API] Is it possible to retrieve user's details or claims?

I need to create Python function, that would verify if specific client's DSS ID is still valid.

When i run get request using the following endpoint 'https://selectapi.datascope.refinitiv.com/RestApi/v1/Users/Users(9034757)' and my own user id, i am getting a valid response:

b'{"@odata.context":"https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#Users/$entity","UserId":9034757,"UserName":"Bartosz Hurec","Email":"bartosz.hurec@lseg.com","Phone":""}'

But when i try the same for some other ID, i am getting a message:
b'{"error":{"message":"User of id '9009514' not found. "}}'

Upon checking on DSS PUBS, the ID from example above exists and is valid.

Do I need some additional permissions to view other details of users others than mine own?

Thanks a lot in advance.

Answers

  • Hello @Bartosz.Hurec,

    I think you will need additional permissions to view other users. Even just invoking an endpoint without any userID should provide you with a list of all users - but is limited by the invoking user's permissions to retrieve this information.

    GET https://selectapi.datascope.refinitiv.com/RestApi/v1/Users/Users
    HTTP/1.1 200 OK { "@odata.context": "https://selectapi.datascope.refinitiv.com/RestApi/v1/$metadata#Users", "value": [ { "UserId": 131075, "UserName": "Peter Herbison", "Email": " ", "Phone": "" }, { "UserId": 131076, "UserName": "Tarun Jain", "Email": " ", "Phone": "" }, { "UserId": 131077, "UserName": "Andreas Runnemo", "Email": " ", "Phone": "" }, { "UserId": 131080, "UserName": "Zelda Hibbert", "Email": " ", "Phone": "" } ••• ]

    I would recommend that you speak with the product account manager to get those additional permissions.