Click or drag to resize

OrganisationUnitManagerAddOrganisationUnitUser Method

Adds the new organisation unit user and adds data rights for themself and current user.

Namespace:  PsrApi.Managers
Assembly:  PsrApi (in PsrApi.dll) Version: 8.13.13.27522 (14.03.2022)
Syntax
C#
public Task<PsrOrganisationUnitUser> AddOrganisationUnitUser(
	PsrOrganisationUnitUser user,
	byte[] userPasswordHash,
	byte[] userPasswordSalt,
	byte[] publicKey,
	byte[] encryptedUserPrivateKey,
	byte[] encryptedCurrentUserPrivateKey,
	Nullable<Guid> parentOrganisationUnitId = null
)

Parameters

user
Type: PsrApi.DataPsrOrganisationUnitUser
User that should be added.
userPasswordHash
Type: SystemByte
Hash of the user's password.
userPasswordSalt
Type: SystemByte
Salt used to hash the password.
publicKey
Type: SystemByte
Public key of the users key pair.
encryptedUserPrivateKey
Type: SystemByte
Encrypted (with the user's password) private key of the user's key pair.
encryptedCurrentUserPrivateKey
Type: SystemByte
Encrypted (with the current user's right key) private key of the user's key pair.
parentOrganisationUnitId (Optional)
Type: SystemNullableGuid
(optional) ID of the parent organisation unit.

Return Value

Type: TaskPsrOrganisationUnitUser
See Also