private string GetCurrentUserId(IPrincipal?currentUser) { ClaimsIdentity?umbIdentity = currentUser?.GetUmbracoIdentity(); var currentUserId = umbIdentity?.GetUserId <string>() ?? Core.Constants.Security.SuperUserIdAsString; return(currentUserId); }