public async Task GetProfileDataAsync(ProfileDataRequestContext context) { var sub = context.Subject.GetSubjectId(); var user = await _userManager.FindByIdAsync(sub); var principal = await _claimsFactory.CreateAsync(user); var cs = principal.Claims.ToList(); cs = cs.Where(claim => context.RequestedClaimTypes.Contains(claim.Type)).ToList(); // Add User Properties List <OrgUserClientDisplayType> claims = _DbPortal.GetT_PRT_ORG_USERS_CLIENT_ByUserID(sub.ToString()); foreach (OrgUserClientDisplayType claim in claims) { string orgName = _DbPortal.GetT_PRT_ORGANIZATIONS_ByOrgID(claim.ORG_ID).ORG_NAME; cs.Add(new Claim(claim.CLIENT_ID, claim.ORG_CLIENT_ALIAS + ";" + claim.ADMIN_IND + ";" + claim.STATUS_IND + ";" + claim.UserName + ";" + orgName)); } context.IssuedClaims = cs; }