WCF
Code Block | ||||
---|---|---|---|---|
| ||||
public AuthServerFindUsersResponse FindUsers(string authServerPartnerLoginName, string authServerPartnerLoginPassword, string queryFilter, FindUserFilterType queryType ) |
...
WCF parameter | data type | description |
---|---|---|
authServerPartnerLoginName | string | SurePassId SurePassID account login name |
authServerPartnerLoginPassword | string | SurePassId SurePassID account login key |
queryFilter | string | The filter to be used for searching for users. The value can user SQL wildcards such as %. |
queryTypequeryFilterType | FindUserFilterType | Identifies the type of queryFilter. Possible values are: Username or Email. If omitted, Username is assumed |
...
Code Block | ||||
---|---|---|---|---|
| ||||
if (resp.ErrorCode != 0) { message.Text = resp.ErrorMsg; return false; } |
REST
REST parameter | data type | description |
---|---|---|
spAccountLoginName | string | SurePassId SurePassID account login name |
spAccountLoginKey | string | SurePassId 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 % |
queryTypequeryFilterType | string | Identifies the type of queryFilter. Possible values are: username or email. If omitted, username is assumed |
...
Code Block | ||||
---|---|---|---|---|
| ||||
{ "spAccountLoginName": "accountLogin", "spAccountLoginKey": "accountKey", "queryFilter": "l%", "queryTypequeryFilterType": "username", // the default if not specified "type": "find_users", } |
...