Before this change, due to a quirk in Graph, User permissions could be lost when applying permissions. Fixes #8465