_createCargroup

(API version 2.0)

int _createCargroup ( string kodf , string username , string pass , string GroupName , int OwnerGroup , int RightDemo , int RightUser , int RightAdmin )

Description

The function creates a new group

Categories

Parameters

string kodf
Company code
string username
Login username
string pass
Login password
string GroupName
Group name (may not contain a slash, must be unique)
int OwnerGroup
Parent group ID, 0 for root
int RightDemo
0 - remove new group rights to all demo users
1 - Enable rights to a new group to all users "demo"
Recommended: 0
int RightUser
0 - Remove new group rights to all users of "user"
1 - Enable rights to a new group to all users "user"
Recommended: 0
int RightAdmin
0 - Remove the rights to the new group to all "admin" users except the originating user
  1 - Allow rights for a new group to all users "admin"
Recommended: 1

Return value

int

> 0 - OK - id of the newly created group

-1 - Unable to log in
-2 - User does not have admin rights
-3 - The user has no right to a parent group
-4 - the group name must not contain a broken character
-5 - Group name already exists in the business
-6 - Group name must contain at least 1 character
-7 - Name is too long (Max. 50 chars are allowed)

Examples

API version 2.0

$client = new SoapClient('https://api.webdispecink.cz/code/WebDispecinkServiceNet.php?wsdl');
$return = $client->_createCargroup($kodf, $username, $pass, $GroupName, $OwnerGroup, $RightDemo, $RightUser, $RightAdmin);

Test

To test the function, enter parameters in form below and press Try it out button.

Company code
Login username
Login password
Group name (may not contain a slash, must be unique)
Parent group ID, 0 for root
0 - remove new group rights to all demo users
1 - Enable rights to a new group to all users "demo"
Recommended: 0
0 - Remove new group rights to all users of "user"
1 - Enable rights to a new group to all users "user"
Recommended: 0
0 - Remove the rights to the new group to all "admin" users except the originating user
  1 - Allow rights for a new group to all users "admin"
Recommended: 1

* Required field