Assigning __User to Role creates one more role for that specific user


(Eric) #1

In swift I run code that assigns an existing PermissionUser (i.e.__User) to an existing PermissionRole (i.e. __Role). In studio, I see the user id added to the list of members (i.e. users) for that __Role as intended.

But strangely, I also see a new __Role created wth the name “_User:user_id_here” with it’s members including itself… Is this supposed to happen? It seems like creating a role for each single user means I’m doing something wrong.

If this is intended I’d appreciate you letting me know since I feel like it’s something I need to fix on my end before moving on. This permission stuff is extremely tough and time consuming.