Sanctions Search API: v2

<back to all web services

GetSubUsers

Account
The following routes are available for this service:
GET/subusers/listGet all sub users
GetSubUsers Parameters:
NameParameterData TypeRequiredDescription
IncludeMainUserqueryboolNoIf this is 'True' the main user will be included in the list of sub users
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
Authenticationheader, bodyAuthenticationYesThe authentication credentials
Authentication Parameters:
NameParameterData TypeRequiredDescription
ApiUserIdheader, bodystringYesThe API User ID provided by us when you signed up to use our API
ApiUserKeyheader, bodystringYesThe API User Key provided by us when you signed up to use our API
GetSubUsersResponse Parameters:
NameParameterData TypeRequiredDescription
DataformGetSubUsersDataNoThe response data
GetSubUsersData Parameters:
NameParameterData TypeRequiredDescription
SubUsersformList<SubUser>NoThe list of sub users
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNoThe status of the response
ResponseStatus Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformstringNo
MessageformstringNo
StackTraceformstringNo
ErrorsformArrayOfResponseErrorNo
MetaformDictionary<string, string>No
ResponseError Parameters:
NameParameterData TypeRequiredDescription
ErrorCodeformstringNo
FieldNameformstringNo
MessageformstringNo
MetaformDictionary<string, string>No
SubUser Parameters:
NameParameterData TypeRequiredDescription
IsMainUserformboolNoIs this user the main user (i.e. the user who created the account)
UserIdformGuidNoThe sub user's id (GUID)
UserNameformstringNoThe sub user's UserName (i.e. the sign-in username)
NameformstringNoThe sub user's name
EmailformstringNoThe sub user's email address
IsAdminformboolNoDoes this sub user have admin privileges, such as managing purchases and sub users
CanResolveSearchesformboolNoCan this sub user resolve searches (UpdateSearch) they have access to
CanDeleteSearchesformboolNoCan this sub user delete searches (DeleteSearch) they have access to
PermissionsformArrayOfUserNamesNoThe user names for which searches will be made available to the sub user

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

GET /subusers/list HTTP/1.1 
Host: api.sanctionssearch.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"data":{"subUsers":[{"isMainUser":false,"userName":"String","name":"String","email":"String","isAdmin":false,"canResolveSearches":false,"canDeleteSearches":false,"permissions":["String"]}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}}