SecuritySegregationOfDuties::assignUserToRole Method [AX 2012]

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

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

Run On

Called

Parameters

_userRole
Type: SecurityUserRole Table
The securityUserRole instance to be inserted.
_caller
Type: Object Class
The calling form.

Return Value

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

If the specified calling form is nullNothingnullptrunita 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.

Show: