Share via


SecuritySegregationOfDuties::assignUserToRole Method [AX 2012]

Assigns a user to a role by using an optional segregation of duties (SOD) conflict resolution UI.

Syntax

client server public static boolean assignUserToRole(SecurityUserRole _userRole, [Object _caller])

Run On

Called

Parameters

Return Value

Type: boolean
true if a record is inserted; otherwise, false.

Remarks

If the specified calling form is null Nothing nullptr unit a null reference (Nothing in Visual Basic) the UI is not displayed and the SOD conflicts are not resolved.

The calling code must not be in a transaction.

See Also

Reference

SecuritySegregationOfDuties Class