EMS.Services.TEMSInternalAPI.AddUsersToGroup

From RAD Studio API Documentation
Jump to: navigation, search

[–] Properties
Type: function
Visibility: public
Source:
EMS.Services.pas
EMS.Services.hpp
Unit: EMS.Services
Parent: TEMSInternalAPI

Delphi

function AddUsersToGroup(const AGroupName: string;
const AUsers: TArray<string>): IEMSResourceResponseContent;

C++

_di_IEMSResourceResponseContent __fastcall AddUsersToGroup(const System::UnicodeString AGroupName, const System::DynamicArray<System::UnicodeString> AUsers);

Description

Adds one or more EMS Users to an existing EMS Group.

AddUsersToGroup updates the EMS Group data with the new EMS Users.

The AddUsersToGroup method receives the following parameters:

  • AGroupName: EMS Group name that identifies an existing EMS Group in the EMS Server.
  • AUsers: Array of EMS User usernames.

If the EMS Group name does not exist in the EMS Server, AddUsersToGroup raises the following exception: 'Group not found: <GroupName>'.

AddUsersToGroup returns an IEMSResourceResponseContent to read the response from the resource.

See Also