Skip to main content
Browse Documentation

Create a group

Created by Alex Pop on 04 Aug 2020

Creates a new group resource from a Group object passed as an argument.

create(group: Group): Promise<Group>

Remarks

Only a member of the System Administrators group can create a group resource.

Example

let group = {    
    "name": "Paper Street Soap Company",
    "Description": "Employees of the Paper Street Soap Company", 
    "type": "contensis",
    "custom" : {
        "clientId": "PSSC"
    }
};

client.security.groups.create(group)
    .then(result => {
        console.log('API call result: ', result);
    })
    .catch(error => {
        console.log('API call fetch error: ', error);        
    });