Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IServerEventUserManager

    Manages group access for a user.

    Namespace: Umbraco.Cms.Core.ServerEvents
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IServerEventUserManager

    Methods

    View Source

    AssignToGroupsAsync(ClaimsPrincipal, String)

    Adds the connections to the groups that the user has access to.

    Declaration
    Task AssignToGroupsAsync(ClaimsPrincipal user, string connectionId)
    Parameters
    Type Name Description
    System.Security.Claims.ClaimsPrincipal user

    The owner of the connection.

    System.String connectionId

    The connection to add to groups.

    Returns
    Type Description
    Task
    View Source

    RefreshGroupsAsync(ClaimsPrincipal)

    Reauthorize the user and removes all connections held by the user from groups they are no longer allowed to access.

    Declaration
    Task RefreshGroupsAsync(ClaimsPrincipal user)
    Parameters
    Type Name Description
    System.Security.Claims.ClaimsPrincipal user

    The user to reauthorize.

    Returns
    Type Description
    Task
    • Improve this Doc
    • View Source
    In This Article
    • Methods
      • AssignToGroupsAsync(ClaimsPrincipal, String)
      • RefreshGroupsAsync(ClaimsPrincipal)
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX