Skip to main content
1-Visitor
June 24, 2014
Question

Get User Properties

  • June 24, 2014
  • 4 replies
  • 2246 views

Is there a service similar to GetImplementingThingsWithData for Users? I am trying to get a list of users and their property values so that they can be updated through a mashup

    4 replies

    5-Regular Member
    June 24, 2014

    Hi David,

    Since all Users are added the "Users" Group, you can simply

    GetGroupMembers()

    , iterate through the InfoTable returned and access each property as follows:


    Users["DavidCor"].firstName


    Thanks,

    Adam



    davidcor1-VisitorAuthor
    1-Visitor
    June 24, 2014

    My issue is that I only want to display the users that are in the same organization as the current user. Would this mean I need to create a group for each organization?



    davidcor1-VisitorAuthor
    1-Visitor
    June 24, 2014

    I also want to tie the resulting infotable to a list on a mashup so that when a user is selected in a list, their details are presented



    5-Regular Member
    June 24, 2014

    Sorry, I misunderstood the question. Organizations have a GetMembers() Service which returns an InfoTable of members. I would create a wrapper Service that takes the name of an Organization as an input and returns the result of calling GetMembers() on that Organization. Then, create a Service that takes a username as input (the value obtained by selecting a row in a list) and returns the result of calling GetPropertyValues() on that User.