4 Replies Latest reply on Jun 24, 2014 4:22 PM by adam RSS
    davidcor Apprentice

    Get User Properties

    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

      • Get User Properties
        adam Creator

        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



        • Get User Properties
          davidcor Apprentice

          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?

           



          • Get User Properties
            davidcor Apprentice

            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

             



            • Get User Properties
              adam Creator

              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.