using System.Security.Claims; namespace Umbraco.Cms.Core.ServerEvents; /// /// Manages group access for a user. /// public interface IServerEventUserManager { /// /// Adds the connections to the groups that the user has access to. /// /// The owner of the connection. /// The connection to add to groups. /// Task AssignToGroupsAsync(ClaimsPrincipal user, string connectionId); /// /// Reauthorize the user and removes all connections held by the user from groups they are no longer allowed to access. /// /// The user to reauthorize. /// Task RefreshGroupsAsync(ClaimsPrincipal user); }