Skip to main content
14-Alexandrite
February 29, 2024
Solved

A user does not have access of modify identity, how to override this access that user can edit part.

  • February 29, 2024
  • 1 reply
  • 943 views

A user does not have access of modify identity to a part, how to override this access that user can edit part. Through the code.

Best answer by HelesicPetr

Hi @AR_9920456 

It is not good idea to avoid the ACL rules but you can set the code session to administrator and do any changes you need.

SessionHelper.manager.setAdministrator();

There is very important point.

Save actual user to an variable, set the admin make any changes, set the session user back to original user.

PetrH

1 reply

HelesicPetr
22-Sapphire II
22-Sapphire II
February 29, 2024

Hi @AR_9920456 

It is not good idea to avoid the ACL rules but you can set the code session to administrator and do any changes you need.

SessionHelper.manager.setAdministrator();

There is very important point.

Save actual user to an variable, set the admin make any changes, set the session user back to original user.

PetrH

14-Alexandrite
March 5, 2024

Hello HelesicPetr,

 

it works