Start a new topic

Cannot get UUID of Users using API

user_list_object1 = ostUsersObject.list() # returns an object that includes the list of users

users_list1 =["economy_users"] # sets users_list to the array of users from the returned object

people1 = { |u| user_names1.include? u["name"] }.map { |r| {name: r["name"], uuid: r["uuid"] }} # filters for Alice and Bob



If you try this for "User 2", "Alice" or "Bob" , it will work fine.


If you try this for "User 1", "User 0" or any other user, you will get an empty string. not the UUID

Login to post a comment