public async Task<IList<string>> GetProjects(
     [FromHeader(Name = CurrentPlantMiddleware.PlantHeader)]
     [Required]
     string plant)
 {
     var currentUserOid = _currentUserProvider.GetCurrentUserOid();
     var projects = await _permissionCache.GetProjectsForUserAsync(plant, currentUserOid);
     return projects;
 }
        private async Task AddUserDataClaimForAllOpenProjectsToIdentityAsync(ClaimsIdentity claimsIdentity, string plantId, Guid userOid)
        {
            var projectNames = await _permissionCache.GetProjectsForUserAsync(plantId, userOid);

            projectNames?.ToList().ForEach(projectName => claimsIdentity.AddClaim(CreateClaim(ClaimTypes.UserData, GetProjectClaimValue(projectName))));
        }