CCC API v8.4.0.0

<back to all web services

GetServiceUsers

The following routes are available for this service:
GET/api/services/single/users
GET/api/services/{ServiceGuid}/usersGet users for a service. ServiceUserGroupGuid / ServiceUserGroupType - Identify the group the service user will be added to: if only ServiceUserGroupGuid is specified then the group identified by that guid is used; if only ServiceUserGroupType is specified then the default group for that type is used; if both ServiceUserGroupGuid and ServiceUserGroupType are specified, the type of the group identified by the ServiceUserGroupGuid has to match the ServiceUserGroupType; if neither ServiceUserGroupGuid nor ServiceUserGroupType are specified, the user will be assigned the services' default package for users.
GetServiceUsers Parameters:
NameParameterData TypeRequiredDescription
ServiceGuidqueryGuidNoMust provide ServiceGuid if ServiceCode is null.
ServiceCodequeryStringNoMust provide ServiceCode if ServiceGuid is null.
ServiceUserGroupGuidqueryGuidNo
ServiceUserGroupTypequeryStringNo

Allowable Values

  • Guest
  • Professional
TokenqueryStringNo
PagequeryIntegerNo
PageSizequeryIntegerNoThe Page Size returned by the operation. Defaults to 25.
GetServiceUsersResponse Parameters:
NameParameterData TypeRequiredDescription
PageSizebodyIntegerNo
TotalPagesbodyIntegerNo
TotalItemsbodyIntegerNo
CurrentPagebodyIntegerNo
ResultsbodyServiceUser[]No
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResponseStatusformResponseStatusNo
ServiceUser Parameters:
NameParameterData TypeRequiredDescription
ServiceUserGuidbodyGuidNo
EmailAddressformstringNo
CreatedOnbodyDateTimeNo
FirstNameformstringNo
LastNameformstringNo
StatusformstringNo

Allowable Values

  • Active
  • Disabled
RegisteredOnbodyDateTimeNo
PackageExpirybodyDateTimeNo
LanguageformstringNo

Allowable Values

  • en
  • fr
  • de
  • es
  • ja
  • nl
  • zh
EmailAliasesformDictionary<string, string>No
GroupNameformstringNo
GroupGuidbodyGuidNo
GroupTypeformstringNo

Allowable Values

  • Guest
  • Professional
EnableCampaignsformboolNo

Allowable Values

  • true
  • false
EnableESignaturesformboolNo

Allowable Values

  • true
  • false
LastLoginbodyDateTimeNo
LastIpAddressformstringNo
CurrentToolbarVersionformstringNo
PasswordExpiryformDateTime?No
PasswordThrottledformboolNo
DefaultSecureformstringNo

Allowable Values

  • Never
  • BasedOnKeywords
  • Always
BlacklistModeformstringNo

Allowable Values

  • Never
  • SecureOnly
  • SecureAndBasic
EnableMfaformboolNo

Allowable Values

  • true
  • false

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 /api/services/single/users HTTP/1.1 
Host: api.secure-messaging.com 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{
  "pageSize": 0,
  "totalPages": 0,
  "totalItems": 0,
  "currentPage": 0,
  "results": [
    {
      "serviceUserGuid": "00000000000000000000000000000000",
      "emailAddress": "String",
      "createdOn": "0001-01-01T00:00:00Z",
      "firstName": "String",
      "lastName": "String",
      "status": "String",
      "registeredOn": "0001-01-01T00:00:00Z",
      "packageExpiry": "0001-01-01T00:00:00Z",
      "language": "String",
      "emailAliases": {
        "String": "String"
      },
      "groupName": "String",
      "groupGuid": "00000000000000000000000000000000",
      "groupType": "String",
      "enableCampaigns": false,
      "enableESignatures": false,
      "lastLogin": "0001-01-01T00:00:00Z",
      "lastIpAddress": "String",
      "currentToolbarVersion": "String",
      "passwordExpiry": "0001-01-01T00:00:00Z",
      "passwordThrottled": false,
      "defaultSecure": "String",
      "blacklistMode": "String",
      "enableMfa": false
    }
  ],
  "responseStatus": {
    "errorCode": "String",
    "message": "String",
    "stackTrace": "String",
    "errors": [
      {
        "errorCode": "String",
        "fieldName": "String",
        "message": "String",
        "meta": {
          "String": "String"
        }
      }
    ],
    "meta": {
      "String": "String"
    }
  }
}