cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

How to manlipulate PrincipalGroupRelation in code

Former Member
0 Likes
1,114

Hi ,
The UserGroup was updated, which should not be because I've changed nothing but the association with a Customer, and I can not find a way to manlipulate the PrincipalGroupRelation in code.
Is there anyway to manlipulate the PrincipalGroupRelation in code, or disable the update for UserGroup during the changing of Customer's groups.

View Entire Topic
mpern
Product and Topic Expert
Product and Topic Expert

Between UserGroup and Customer is a many-to-may relation, and one of the features of such a relation is that both ends are updated when one end changes. You will always be able to navigate to all customers of a group, or to all groups of a customer, regardless where you change the relation.

But, there are some ways to suppress at least the update of the modifiedtime of the Customer or UserGroup using following property:

 relation. PrincipalGroupRelation.markmodified = false 

This works with every relation, the syntax is relation.<relationname>.markmodifed=false|true

Former Member
0 Likes

Thanks a lot, that solved the problem perfectly.