Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
/**
* Create a role and then update it
*/
private static void createRoleExample() {
Service splunkService = connectAndLoginToSplunkExample();
// Create a new role called 'testrole'
Role role = splunkService.getRoles().create("testrole");
// refresh state from server
role.refresh();
// Import properties from the 'user' role and update the server
role.setImportedRoles("user");
role.update();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.