DigiOffice Gateway Web Services

<back to all web services

GetUsersAndGroupsForTransition

Get available users and groups to assign to a transition.

Requires Authentication
The following routes are available for this service:
GET/api/workflowtransitions/{TransitionID}/getusersandgroups
"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 GetUsersAndGroupsForTransition {
    /** @param {{TransitionID?:string,PageSize?:number,PageNumber?:number,SearchCriteria?:string,SelectedUserIDs?:number[],SelectedGroupIDs?:number[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /**
     * @type {string}
     * @description ID of the transition */
    TransitionID;
    /** @type {number} */
    PageSize;
    /** @type {number} */
    PageNumber;
    /** @type {string} */
    SearchCriteria;
    /** @type {number[]} */
    SelectedUserIDs;
    /** @type {number[]} */
    SelectedGroupIDs;
}

JavaScript GetUsersAndGroupsForTransition DTOs

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

HTTP + OTHER

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

GET /api/workflowtransitions/{TransitionID}/getusersandgroups HTTP/1.1 
Host: test-dogw.klokgroep.nl 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"NumberOfAllRecords":0,"UsersOrGroups":[{}],"QuickAddOptions":[{"Name":"String","EntityType":"String"}]}