DigiOffice Gateway Web Services

<back to all web services

GetUsersAndGroups

Requires Authentication
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports IDB.API.DTO.UserInformation.Operations
Imports IDB.API.DTO.UserInformation
Imports IDB.API.DTO
Imports IDB.API.DTO.Controls.QuickLookup

Namespace Global

    Namespace IDB.API.DTO

        Public Partial Class UserOrGroup
            Public Overridable Property ID As Integer
            Public Overridable Property Title As String
            Public Overridable Property IsChecked As Boolean
            Public Overridable Property Image As String
        End Class
    End Namespace

    Namespace IDB.API.DTO.Controls.QuickLookup

        Public Partial Class QuickAddOption
            Public Overridable Property Name As String
            Public Overridable Property EntityType As String
        End Class
    End Namespace

    Namespace IDB.API.DTO.UserInformation

        Public Partial Class UsersOrGroupsResponse
            Implements IBaseQuickLookupResponse
            Public Sub New()
                UsersOrGroups = New List(Of UserOrGroup)
                QuickAddOptions = New List(Of QuickAddOption)
            End Sub

            Public Overridable Property NumberOfAllRecords As Integer
            Public Overridable Property UsersOrGroups As List(Of UserOrGroup)
            Public Overridable Property QuickAddOptions As List(Of QuickAddOption)
        End Class
    End Namespace

    Namespace IDB.API.DTO.UserInformation.Operations

        Public Partial Class GetUsersAndGroups
            Public Sub New()
                SelectedUserIDs = New List(Of Integer)
                SelectedGroupIDs = New List(Of Integer)
            End Sub

            Public Overridable Property UserEnvironment As Integer
            Public Overridable Property PageSize As Integer
            Public Overridable Property PageNumber As Integer
            Public Overridable Property SearchCriteria As String
            Public Overridable Property SelectedUserIDs As List(Of Integer)
            Public Overridable Property SelectedGroupIDs As List(Of Integer)
        End Class
    End Namespace
End Namespace

VB.NET GetUsersAndGroups DTOs

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/GetUsersAndGroups HTTP/1.1 
Host: digiofficeapigateway.deltares.nl 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

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

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