Click or drag to resize

PasswordManagerGeneratePolicyPasswordStatic Method

Generates a password that matches the given policy.

Namespace:  PsrApi.Managers
Assembly:  PsrApi (in PsrApi.dll) Version: 9.3.0.33526 (08.10.2025)+e4d6269d444890d28afbdf39a4add0d0ad0df4f2
Syntax
C#
public static string GeneratePolicyPasswordStatic(
	PsrPolicy policy,
	List<string> usernames = null
)

Parameters

policy
Type: PsrApi.DataPsrPolicy
usernames (Optional)
Type: System.Collections.GenericListString
(optional) list of usernames that should be taken into account when NotAllowedPasswordUsername is true.

Return Value

Type: String
See Also