Invoking the "Assign" method in a custom script with the intention to change a PersonWantsOrg object's orderstate property to "Assigned" results in the following error:
[810222] Error executing script 'XXXXXXX'.
[810215] Method Assign(VI.DB.Entities.ISession, VI.DB.Entities.IEntity, System.String, System.String, System.Threading.CancellationToken) is been deactivated and cannot be called.
In general, whether customizer methods are enabled or not can depend on object states.
In this particular instance, the PersonWantsOrg object's orderstate property is "Unsubscribed" or "Aborted". In order to prevent silently re-granting permissions, an orderstate change from these states to "Assigned" is not allowed, hence the method "Assign" is also deactivated.
Check the orderstate before invoking the method "Assign".
© 2024 One Identity LLC. ALL RIGHTS RESERVED. Feedback Terms of Use Privacy Cookie Preference Center