DigiOffice Gateway Web Services

<back to all web services

GetUsersAndGroups

Requires Authentication
"use strict";
export class UserOrGroup {
    /** @param {{ID?:number,Title?:string,IsChecked?:boolean,Image?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    ID;
    /** @type {string} */
    Title;
    /** @type {boolean} */
    IsChecked;
    /** @type {string} */
    Image;
}
export class QuickAddOption {
    /** @param {{Name?:string,EntityType?:string}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    Name;
    /** @type {string} */
    EntityType;
}
export class UsersOrGroupsResponse {
    /** @param {{NumberOfAllRecords?:number,UsersOrGroups?:UserOrGroup[],QuickAddOptions?:QuickAddOption[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    NumberOfAllRecords;
    /** @type {UserOrGroup[]} */
    UsersOrGroups;
    /** @type {QuickAddOption[]} */
    QuickAddOptions;
}
export class GetUsersAndGroups {
    /** @param {{UserEnvironment?:number,PageSize?:number,PageNumber?:number,SearchCriteria?:string,SelectedUserIDs?:number[],SelectedGroupIDs?:number[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {number} */
    UserEnvironment;
    /** @type {number} */
    PageSize;
    /** @type {number} */
    PageNumber;
    /** @type {string} */
    SearchCriteria;
    /** @type {number[]} */
    SelectedUserIDs;
    /** @type {number[]} */
    SelectedGroupIDs;
}

JavaScript GetUsersAndGroups DTOs

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

HTTP + XML

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

POST /xml/reply/GetUsersAndGroups HTTP/1.1 
Host: dogw.klokgroep.nl 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<GetUsersAndGroups xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.UserInformation.Operations">
  <PageNumber>0</PageNumber>
  <PageSize>0</PageSize>
  <SearchCriteria>String</SearchCriteria>
  <SelectedGroupIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </SelectedGroupIDs>
  <SelectedUserIDs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>0</d2p1:int>
  </SelectedUserIDs>
  <UserEnvironment>0</UserEnvironment>
</GetUsersAndGroups>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<UsersOrGroupsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IDB.API.DTO.UserInformation">
  <NumberOfAllRecords>0</NumberOfAllRecords>
  <QuickAddOptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/IDB.API.DTO.Controls.QuickLookup">
    <d2p1:QuickAddOption>
      <d2p1:EntityType>String</d2p1:EntityType>
      <d2p1:Name>String</d2p1:Name>
    </d2p1:QuickAddOption>
  </QuickAddOptions>
  <UsersOrGroups xmlns:d2p1="http://schemas.datacontract.org/2004/07/IDB.API.DTO">
    <d2p1:UserOrGroup i:nil="true" />
  </UsersOrGroups>
</UsersOrGroupsResponse>