public class UserCollection extends EntityCollection<User>
UserCollection
class represents a collection of Splunk users who
are registered on the current Splunk server.itemClass, items
Modifier and Type | Method and Description |
---|---|
User |
create(String name,
String password,
String role)
Creates a new Splunk user from a username, password, and role.
|
User |
create(String name,
String password,
String[] roles)
Creates a new Splunk user from a username, password, and array of
roles.
|
User |
create(String name,
String password,
String[] roles,
Map args)
Creates a new Splunk user from a username, password, array of
roles, and additional arguments.
|
User |
create(String name,
String password,
String role,
Map args)
Creates a new Splunk user from a username, password, role, and
additional arguments.
|
create, create, remove, remove
clear, containsKey, containsKey, containsValue, createItem, createItem, entrySet, equals, get, get, hashCode, isEmpty, itemKey, itemPath, keySet, list, put, putAll, refresh, remove, size, validate, values, valueSize
getName, getPath, getService, getTitle, getUpdated, invalidate
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public User create(String name, String password, String role)
name
- The username for the new user.password
- The password for the new user.role
- The role to assign to the new user.public User create(String name, String password, String[] roles)
name
- The username for the new user.password
- The password for the new user.roles
- Array of roles to assign to the new user.public User create(String name, String password, String role, Map args)
name
- The username for the new user.password
- The password for the new user.role
- The role to assign to the new user.args
- A map of additional arguments. For a list of available
parameters, see
User authentication parameters on
dev.splunk.com.public User create(String name, String password, String[] roles, Map args)
name
- The username for the new user.password
- The password for the new user.roles
- Array of roles to assign to the new user.args
- A map of additional arguments. For a list of available
parameters, see
User authentication parameters on
dev.splunk.com .Copyright © 2022 Splunk, Inc.. All rights reserved.