REST.Backend.EMSApi.TEMSClientAPI.RetrieveUserGroups

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function RetrieveUserGroups(const AUserID: string): TArray<string>;

C++

System::DynamicArray<System::UnicodeString> __fastcall RetrieveUserGroups(const System::UnicodeString AUserID);

Properties

Type Visibility Source Unit Parent
function public
REST.Backend.EMSApi.pas
REST.Backend.EMSApi.hpp
REST.Backend.EMSApi TEMSClientAPI

Description

Returns an array with the IDs of the groups where the user with the specified ID belongs.

Exceptions

Exception Message Description

EEMSClientAPIError

JSON array expected

RetrieveUserGroups expects a JSON array from the EMS server. The EMS server sent something else.

MasterSecret required

Authentication is TAuthentication.MasterSecret and ConnectionInfo.MasterSecret is an empty string.

Session token required

Authentication is TAuthentication.Session and you did not log in or the session authentication token that you provided to Login is an empty string.

User ID required

The specified user ID is an empty string.

See Also