Importing user groups with uSync v16.1.0 changes GUID between envs

Hi.
I have created a dashboard in Umbraco 16.4.0. The dashboard should only be visible to a certain user group. As i understand it i need to add a condition where i check the “Umb.Condition.CurrentUser.GroupId” and match it against the user group guid (hardcoded). I then export the user group to another environment with uSync Exporter. But uSync does not maintain the user group guid when importing and therefore the dashboard is not visible for the created group.

Anyone stumbled across the same issue and came up with a lovely fix?

Best regards, Gorm.

This is one of those things where i can’t remember why i did a thing :confused: . So i am going to dig around commits.

the actually code in uSync.Complete has this line commented out.

image

digging through the code to work out why.

2 Likes

Hi,

Just to update, we have fixed this in the v17.x code base. (so if you are updated then this is avalible in v17.0.1).

We will look at the v16 stuff - we might be able to sneak* this back into that if you really need it.

Our default policy is we don’t update (other than security) any STS releases once the next release is out - mainly because there are so many versions floating about its hard to maintain support levels for them all, but i will take a look