Coruson API

<back to all web services

GetUsers

Coruson Users

Requires Authentication
The following routes are available for this service:
GET/api/usersQuery for Coruson Users
GetUsers Parameters:
NameParameterData TypeRequiredDescription
PersonIdqueryGuidNoFilter by the PersonId.
ForenamequeryStringNoFilter by the forename of the User.
SurnamequeryStringNoFilter by the surname of the User.
FullNamequeryStringNoFilter by the full name of the User.
UsernamequeryStringNoFilter by the username of the User.
EmailAddressqueryStringNoFilter by the email address of the User.
OrganisationalUnitqueryStringNoFilter by the name of the organisational unit the User(s) belongs to.
OrganisationalUnitIdqueryGuidNoFilter by the Id of the organisational unit the User(s) belongs to.
GroupqueryStringNoFilter by the User Group the User(s) belongs to.
PersonTypequeryPersonTypeYesFilter by the type of the User. By default will return Users of all types.

Allowable Values

  • All
  • OrganisationMember
  • SupplierContact
  • CustomerContact
IsActivequeryBooleanFilterYesFilter by the User's status.

Allowable Values

  • All
  • True
  • False
OrderByqueryUserOrderYesProperty to order by in Ascending order. Default is 'FullName'

Allowable Values

  • Default
  • FullName
  • EmailAddress
  • OrganisationalUnit
  • PersonType
OrderByDescqueryUserOrderYesProperty to order by in Descending order.

Allowable Values

  • Default
  • FullName
  • EmailAddress
  • OrganisationalUnit
  • PersonType
ThenByqueryUserOrderYesSecond Property to order by in Ascending order. NOTE: If this value is the same as either the OrderBy or OrderByDesc values, then it will be ignored.

Allowable Values

  • Default
  • FullName
  • EmailAddress
  • OrganisationalUnit
  • PersonType
ThenByDescqueryUserOrderYesSecond Property to order by in Descending order. NOTE: If this value is the same as either the OrderBy or OrderByDesc values, then it will be ignored.

Allowable Values

  • Default
  • FullName
  • EmailAddress
  • OrganisationalUnit
  • PersonType
PagingRequestBase<T> Parameters:
NameParameterData TypeRequiredDescription
SkipformIntegerNoNumber of items to skip before returning results. Minimum suitable value is 0 and is also the default value.
TakeformIntegerNoNumber of items to return per page. Must be a number in the range 1-100. Default value is 100.
OrderByformEnumNoOrder By
OrderByDescformEnumNoOrder By Descending
ThenByformEnumNoThen By
ThenByDescformEnumNoThen By Descending
RequestBase Parameters:
NameParameterData TypeRequiredDescription
VersionformintNo
GetUsersResponse Parameters:
NameParameterData TypeRequiredDescription
UsersformList<User>No
GetResponseBase Parameters:
NameParameterData TypeRequiredDescription
TotalResultsformintNo
SkipformintNo
TakeformintNo
LinksformList<Link>No
ResponseBase Parameters:
NameParameterData TypeRequiredDescription
StatusDescriptionformstringNo
ResponseStatusformResponseStatusNo
Link Parameters:
NameParameterData TypeRequiredDescription
NameformstringNo
RequestUrlformstringNo
MethodformstringNo
User Parameters:
NameParameterData TypeRequiredDescription
PersonIdformGuidNo
ForenameformstringNo
SurnameformstringNo
FullNameformstringNo
UsernameformstringNo
EmailAddressformstringNo
OrganisationalUnitformstringNo
OrganisationalUnitIdformGuidNo
PersonTypeformPersonTypeNo
IsActiveformboolNo
UserGroupsformList<string>No

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

HTTP + JSV

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

                    POST /jsv/reply/GetUsers HTTP/1.1 
Host: platform.gaelenlighten.com 
Content-Type: text/jsv
Content-Length: length

{
	PersonId: 00000000-0000-0000-0000-000000000000,
	Skip: 0,
	Version: 0,
	Forename: String,
	Take: 0,
	Surname: String,
	FullName: String,
	Username: String,
	EmailAddress: String,
	OrganisationalUnit: String,
	OrganisationalUnitId: 00000000-0000-0000-0000-000000000000,
	Group: String,
	PersonType: All,
	IsActive: All,
	OrderBy: Default,
	OrderByDesc: Default,
	ThenBy: Default,
	ThenByDesc: Default
}
                    
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length

{
	Users: 
	[
		{
			Forename: String,
			Surname: String,
			Fullname: String,
			Username: String,
			EmailAddress: String,
			OrganisationalUnit: String,
			PersonType: All,
			IsActive: False,
			UserGroups: 
			[
				String
			]
		}
	],
	TotalResults: 0,
	StatusDescription: String,
	Skip: 0,
	ResponseStatus: 
	{
		ErrorCode: String,
		Message: String,
		StackTrace: String,
		Errors: 
		[
			{
				ErrorCode: String,
				FieldName: String,
				Message: String,
				Meta: 
				{
					String: String
				}
			}
		],
		Meta: 
		{
			String: String
		}
	},
	Take: 0,
	Links: 
	[
		{
			Name: String,
			RequestUrl: String,
			Method: String
		}
	]
}