private async Task InitUserClaimsAsync() { var user = _userManager.Users.Single(x => x.Email.Equals(ApplicationUserViewModel.UserName)); var claims = await _userManager.GetClaimsAsync(user); foreach (var claim in claims) { if (!claim.Type.Equals(ClaimTypes.Role)) { continue; } var findClaim = UserClaims.First(c => c.ClaimName.Equals(claim.Value)); findClaim.IsChecked = true; } }