Groups resouce

Get users of a group

OVERVIEW

API method to get users from a group. Please note that this method only gets users of an AD group, and not the system groups. 

Request

GET /groups/{groupid}/users : To get all users from a specified group

          /groups/{groupid}/users/{userid}: To get details of specified users from a specified group

Response

<users>                                                       

              <user >                                                       

                             <userid>100</userid>

                             <firstname>Joe</firstname>                                    

                              <lastname>Blow</lastname>                                     

                              <email> joe@domain.com</email>                                

                              <phone>+44 (0) 207 1111 0000</phone>                          

                              <dept>marketing</dept>                                        

                             <org>ORG001</org>                                             

                             <location>                                                    

                                     <addressline1> 10< addressline1>                              

                                     <addressline2> some road </ addressline1>                     

                                     <city> london </city>                                         

                                     <state> london </state>                                       

                                     <country> UK </country>                                       

                                     </location>                                                   

                                    <experiences type="list">                                     

<experience>golf</experience>                                 

<experience>Accountancy</experience>                          

</experiences>                                                

<social type="list">                                          

<social name="linkedIn" value="http://linkedin.com/joeblow" />

<social name="twitter" value="http://twitter.com/joeblow" />  

</social>                                                     

<img>http://imageurl.com/img</img>                            

<reportsto>USR001</reportsto>                                 

<metadatalist type="list">                                    

<metadata name="awards" value="employee of the month" />      

<metadata name="sports" value="golf" />                       

/metadatalist>                                                

<groups type="list">                                          

<group>GRP001</groups>                                        

<group> GRP002</groups>                                       

/metadatalist>                                                

</user>                                                       

<previouspageurl>../users/pageno=1</previouspageurl>          

<nextpageurl>../users/pageno=3</nextpageurl>                  

<totalusers>102</totalusers>                                  

<currentpagenumber>2</currentpagenumber>                  

</users>

 

2xx or 3xx in case of success, 4xx or 5xx in case of failure.

Body content in case of failure

<error>

            <ref> Error reference code in at which full stack trace can be obtained</ref>

           <summery> Details for the error </summery>

          <atom:link rel="self" href="…/errors/200" />  // returns the full strack trace and other details for why the error happened

</error>

 

 

Comments


3 Comments

Last Updated: Jun 11,2023