AerospikeClient.CreateUser Method

Create user with password and roles. Clear-text password will be hashed using bcrypt before sending to server.

Definition

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 8.0.1+e35566e493546c0887ebb841c8e2a2c6a7cbde18
C#
public void CreateUser(
	AdminPolicy policy,
	string user,
	string password,
	IList<string> roles
)

Parameters

policy  AdminPolicy
admin configuration parameters, pass in null for defaults
user  String
user name
password  String
user password in clear-text format
roles  IList<String>
variable arguments array of role names. Predefined roles are listed in Role.cs

Implements

IAerospikeClient.CreateUser(AdminPolicy, String, String, IList<String>)

See Also