addPolicy #
Adds a role to the security profile.
Updating a security profile will have no impact until the save method is called
addPolicy(id) #
Arguments | Type | Description |
---|---|---|
id | string | Unique id of the new role to associate |
addPolicy(policy) #
Arguments | Type | Description |
---|---|---|
policy | JSON Object | policy instance corresponding to the new associated role and its restrictions |
Return Value #
Returns the Profile
object to allow chaining calls.
Edit this page on Github(opens new window)