Example #1
0
        public static void EnsureTeamCloudInfo(this IUser user, TeamCloudUserRole role, IDictionary <string, string> properties = null)
        {
            if (user is null)
            {
                throw new ArgumentNullException(nameof(user));
            }

            user.Role = role;
            if (properties != null)
            {
                user.MergeProperties(properties, overwriteExistingValues: true);
            }
        }
Example #2
0
 public static string PolicyRoleName(this TeamCloudUserRole role)
 => $"TeamCloud_{role}";