Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Background script : issue with the HR role assignment

mehtaaaksha
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

@mehtaaaksha 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

@mehtaaaksha 

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  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader