Issue when promoting: Role assigned to group

Mai Phuong
Tera Contributor

Hello all,

I am facing one weird issue now, this happens in QA environment.

In DEV environment, I assign role A to a group and the system auto grant this role to all users of this group. Then I capture the related record in sys_group_has_role to update set by using 'Force to Update Set'.

Then I promote this update set to QA environment. When checking I see the group has the correct role but all users of this group don't have role A. I don't why it happen?!

I tried another way: capture sys_user_group record into update set and push again to QA but the same result.

Has anybody experienced the same anytime till now?
Am I doing something wrong?

Please advice.

Regards

 

1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Why not have this as manual activity?

Once group is migrated; you can add members to it; then add role to group and it would auto-assign the role to members

Regards
Ankur

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

View solution in original post

7 REPLIES 7

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

Why not have this as manual activity?

Once group is migrated; you can add members to it; then add role to group and it would auto-assign the role to members

Regards
Ankur

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

Within my process, I can just implement in DEV and promote script/configuration to QA through update set/app scope, I cannot implement in QA so cannot have this as manual activity in QA. 

Thank your advice, Ankur.

 

 

Hi,

in that case you will have to capture the sys_user_has_role records as well for those users in update set and migrate that.

Regards
Ankur

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

@Mai Phuong 

Thank you for marking my response as helpful.

Would you mind closing the question by marking appropriate response as correct so that it benefits future readers.

Regards
ankur

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