Values.UserSourceRepresents a user account in a Wickr network with detailed profile information, status, security settings, and authentication details. codeValidation, inviteCode and inviteCodeTtl are restricted to networks under preview only.
type nonrec t = {userId : UserId.t option;The unique identifier for the user within the network.
*)firstName : SensitiveString.t option;The first name of the user.
*)lastName : SensitiveString.t option;The last name of the user.
*)username : GenericString.t option;The email address or username of the user. For bots, this must end in 'bot'.
*)securityGroups : SecurityGroupIdList.t option;A list of security group IDs to which the user is assigned, determining their permissions and feature access.
*)isAdmin : Boolean.t option;Indicates whether the user has administrator privileges in the network.
*)suspended : Boolean.t option;Indicates whether the user is currently suspended and unable to access the network.
*)status : Integer.t option;The current status of the user (1 for pending invitation, 2 for active).
*)otpEnabled : Boolean.t option;Indicates whether one-time password (OTP) authentication is enabled for the user.
*)scimId : GenericString.t option;The SCIM (System for Cross-domain Identity Management) identifier for the user, used for identity synchronization. Currently not used.
*)type_ : GenericString.t option;The descriptive type of the user account (e.g., 'user').
*)cell : GenericString.t option;The phone number minus country code, used for cloud deployments.
*)countryCode : GenericString.t option;The country code for the user's phone number, used for cloud deployments.
*)challengeFailures : Integer.t option;The number of failed password attempts for enterprise deployments, used for account lockout policies.
*)isInviteExpired : Boolean.t option;Indicates whether the user's email invitation code has expired, applicable to cloud deployments.
*)isUser : Boolean.t option;Indicates whether this account is a user (as opposed to a bot or other account type).
*)inviteCode : GenericString.t option;The invitation code for this user, used during registration to join the network.
*)codeValidation : Boolean.t option;Indicates whether the user can be verified through a custom invite code.
*)uname : GenericString.t option;The unique identifier for the user.
*)}val make :
?userId:??? ->
?firstName:??? ->
?lastName:??? ->
?username:??? ->
?securityGroups:??? ->
?isAdmin:??? ->
?suspended:??? ->
?status:??? ->
?otpEnabled:??? ->
?scimId:??? ->
?type_:??? ->
?cell:??? ->
?countryCode:??? ->
?challengeFailures:??? ->
?isInviteExpired:??? ->
?isUser:??? ->
?inviteCode:??? ->
?codeValidation:??? ->
?uname:??? ->
unit ->
t