96
Views
3
Comments
How to get Userkey from environment User to use with LifetimeAPI?
Application Type
Service
Service Studio Version
11.53.37 (Build 61862)
Platform Version
11.17.1 (Build 36834)

Hello to everyone!

I am developing a application using Lifetime API (https://success.outsystems.com/Documentation/11/Reference/OutSystems_APIs/LifeTime_API_v2). In general, its methods use a Key as input parameter (EnvironmentKey, ApplicationKey, UserKey, for instance) to return respective data. I've found a way to get EnvironmentKey (for GET /environments/{EnvironmentKey}/ ) and ApplicationKey (for GET /applications/{ApplicationKey}/ ) using (System) tables, however I could not find a location where there are UserKeys to use with GET /users/{UserKey}/. 

I would like to get UserKey in a similar manner how I get the above mentioned keys, otherwise I'll have to request the list of all users details (GET /users/) and after that, to filter the user I want, every time.

Is there such information?

Kind regards,

Germano

2023-08-28 07-00-10
Paulo Torres
Champion

Hi Germano,

Maybe it's a good option to extend the User table from System and save in your side the UserKey instead to call the API of LT every time and filter.

UserImage.jpg
Germano Costa

Hey @Paulo Torres!

I'm trying to figure out if there is this information somewhere already before to extend the User table and build unnecessary logic.

Thanks!

2023-08-28 07-00-10
Paulo Torres
Champion

If you found let us know but I don't think so!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.