Hello guys,
I am looking for a way to assign a user to an extranet group from the frontend, when the user buys a specific product. I have tried with this approach:
user.AddToGroup(groupId);
using (var supress = new NotificationContext(NotificationContext.NotificationState.SuppressNotifications))
{
user.Save();
}
But it does not seems fully to do the trick. Any help is appreciated.
Best regards, Anders