DigiOffice Gateway Web Services

<back to all web services

GetUsersAndGroups

Requires Authentication
import java.math.*
import java.util.*
import java.io.InputStream
import net.servicestack.client.*


open class GetUsersAndGroups : IPageOptions, ISearchCriteria
{
    open var UserEnvironment:Int? = null
    override var PageSize:Int? = null
    override var PageNumber:Int? = null
    override var SearchCriteria:String? = null
    open var SelectedUserIDs:ArrayList<Int>? = null
    open var SelectedGroupIDs:ArrayList<Int>? = null
}

open class UsersOrGroupsResponse : IBaseQuickLookupResponse
{
    override var NumberOfAllRecords:Int? = null
    open var UsersOrGroups:ArrayList<UserOrGroup>? = null
    override var QuickAddOptions:ArrayList<QuickAddOption>? = null
}

open class UserOrGroup
{
    open var ID:Int? = null
    open var Title:String? = null
    open var IsChecked:Boolean? = null
    open var Image:String? = null
}

open class QuickAddOption
{
    open var Name:String? = null
    open var EntityType:String? = null
}

Kotlin GetUsersAndGroups 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.

POST /jsonl/reply/GetUsersAndGroups HTTP/1.1 
Host: test-dogw.klokgroep.nl 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"UserEnvironment":0,"PageSize":0,"PageNumber":0,"SearchCriteria":"String","SelectedUserIDs":[0],"SelectedGroupIDs":[0]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

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