Background script : issue with the HR role assignment

Abc 26
Tera Expert

Hello Experts,

Post cloning i am trying to assign roles to the parent group through post clone script which will trigger the schedule job but i am facing the below issue.

Schedule Job (Tried execution in Background Script):

Errors :

RoleAccessHandler: User abc does not have the role 'sn_esign.config_manager' which is required to grant/remove 'sn_esign.config_manager' under application administration, Resource: 'record/sys_group_has_role/create'
*** Script: Post Clone Activities completed.

Please help or suggest any approach which i can try.

Thanks.

6 REPLIES 6

@Abc 26 I don't think we can do that.

The user profile must have user_admin role / admin role to manage groups.

So, first add either user_admin or admin role to HR Admin user. Then try to execute your logic

Ankur Bawiskar
Tera Patron
Tera Patron

@Abc 26 

you can follow what @J Siva has mentioned and shared.

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader