SDK Javascript v5.x

setPolicies #

Replaces the roles associated with this security profile.

setPolicies(Array<String> policyIDs) #

Arguments Type Description
policyIDs array of strings Policy IDs to add

setPolicies(Array<JSONObject> policyDefinitions) #

Arguments Type Description
policyDefinitions array of JSON objects Policy definitions to add

Return Value #

Returns the Profile object.

Updating a profile will have no impact until the save method is called

Usage #

Copied to clipboard!
policy = { "roleId": "roleId" };
// Replaces the profile policies set with the given entry.