You are here: Discussion Register  |  Login
 
Discussion Forums
 
ForumForumGateway Web Ser...Gateway Web Ser...Other Web Servi...Other Web Servi...How do I retrieve all the users associated with a customer?How do I retrieve all the users associated with a customer?
Previous Previous
 
Next
 Disabled
New Post
 6/26/2009 11:34 PM
 
 Modified By Kevin Lenahan  on 6/27/2009 12:03:09 AM

A list of users associated with a customer can be retrieved with the GetUsers method in the User web service.

 

Here is an example of how you could retrieve a list of users for a customer:
 
/* Get a reference to the web service */
using (GatewaySample.net.clearstar.gateway.user.User gwUser = new GatewaySample.net.clearstar.gateway.user.User())
{
 
/* Get Users */
XmlNode nodeUser = gwUser.GetUsers("myUserName", "myPassword", myBOID, "myCustID”);
 
}
 
XML Response:
 
<SuspendUser xmlns="">
<ErrorStatus>
<Code></Code>
<Type></Type>
<Message></Message>
 </ErrorStatus>
<User>
<iWebUserID></iWebUserID>
<bSuspended><bSuspended>
</User>
</SuspendUser>
 

Additional information is provided in the documentation and more example code is provided in the Gateway Sample application.

Note: The sUserName passed in must be for a Customer Admin or BO Admin user.

 

Previous Previous
 
Next
 Disabled
ForumForumGateway Web Ser...Gateway Web Ser...Other Web Servi...Other Web Servi...How do I retrieve all the users associated with a customer?How do I retrieve all the users associated with a customer?

 

Privacy Statement  |  Terms Of Use
Copyright 2009 by ClearStar.net