Find Users
WCF
Method
public AuthServerFindUsersResponse FindUsers(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string queryFilter, FindUserFilterType queryType )
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassID account login name |
authServerPartnerLoginPassword | string | SurePassID account login key |
queryFilter | string | The filter to be used for searching for users. The value can user SQL wildcards such as %. |
queryFilterType | FindUserFilterType | Identifies the type of queryFilter. Possible values are: Username or Email. If omitted, Username is assumed |
Sample WCF C# Method
AuthServerFindUsersResponse resp = FindUsers("accountLogin", "accountKey", "M%", // search for all users beginning with M FindUserFilterType.LoginName );
Sample WCF C# Repsonse
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; }
REST
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassID account login name |
spAccountLoginKey | string | SurePassID account login key |
type | string | find_users |
queryFilter | string | The filter to be used for searching for users. The value can user SQL wildcards such as % |
queryFilterType | string | Identifies the type of queryFilter. Possible values are:Â username or email. If omitted, username is assumed |
Sample REST/Json Method
 { "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "queryFilter": "l%", "queryFilterType": "username", // the default if not specified "type": "find_users", }
Sample REST/Json Response
{ "Users": [ { "username": "larry" }, { "username": "loginMarty2" }, { "username": "ltest" }, { "username": "ltest2" }, { "username": "ltest3" } ], "errorCode": 0, "errorMessage": "OK", "type": "find_users" }