Is there any way of changing a users/groups permissions programmatically?
I want to do it programmatically, because I need to create groups/find groups a user is connected to from a OAuth-providers groups, and if the group already doesn't exist, create group and assign permissions to that group.