Search Results for

    Show / Hide Table of Contents
    View Source

    Interface IUserGroup

    Represents a user group in Umbraco.

    Namespace: Umbraco.Cms.Core.Models.Membership
    Assembly: Umbraco.Core.dll
    Syntax
    public interface IUserGroup : IEntity, IDeepCloneable, IRememberBeingDirty, ICanBeDirty

    Properties

    View Source

    Alias

    Gets or sets the alias of the user group.

    Declaration
    string Alias { get; set; }
    Property Value
    Type Description
    string
    View Source

    AllowedLanguages

    Gets the collection of language IDs that this user group has access to.

    Declaration
    IEnumerable<int> AllowedLanguages { get; }
    Property Value
    Type Description
    IEnumerable<int>
    View Source

    AllowedSections

    Gets the collection of section aliases that this user group has access to.

    Declaration
    IEnumerable<string> AllowedSections { get; }
    Property Value
    Type Description
    IEnumerable<string>
    View Source

    Description

    Gets or sets the description of the user group.

    Declaration
    string? Description { get; set; }
    Property Value
    Type Description
    string
    Remarks

    TODO (V18): Remove the default implementations.

    View Source

    GranularPermissions

    Gets or sets the granular permissions for this user group.

    Declaration
    ISet<IGranularPermission> GranularPermissions { get; set; }
    Property Value
    Type Description
    ISet<IGranularPermission>
    View Source

    HasAccessToAllLanguages

    If this property is true it will give the group access to all languages

    Declaration
    bool HasAccessToAllLanguages { get; set; }
    Property Value
    Type Description
    bool
    View Source

    Icon

    The icon

    Declaration
    string? Icon { get; set; }
    Property Value
    Type Description
    string
    View Source

    Name

    The name

    Declaration
    string? Name { get; set; }
    Property Value
    Type Description
    string
    View Source

    Permissions

    The set of permissions provided by the frontend.

    Declaration
    ISet<string> Permissions { get; set; }
    Property Value
    Type Description
    ISet<string>
    Remarks

    By default the server has no concept of what all of these strings mean, we simple store them and return them to the UI.

    View Source

    StartContentId

    Gets or sets the starting content node ID for this user group.

    Declaration
    int? StartContentId { get; set; }
    Property Value
    Type Description
    int?
    View Source

    StartMediaId

    Gets or sets the starting media node ID for this user group.

    Declaration
    int? StartMediaId { get; set; }
    Property Value
    Type Description
    int?
    View Source

    UserCount

    Specifies the number of users assigned to this group

    Declaration
    int UserCount { get; }
    Property Value
    Type Description
    int

    Methods

    View Source

    AddAllowedLanguage(int)

    Adds access to a language for this user group.

    Declaration
    void AddAllowedLanguage(int languageId)
    Parameters
    Type Name Description
    int languageId

    The ID of the language to add.

    View Source

    AddAllowedSection(string)

    Adds access to a section for this user group.

    Declaration
    void AddAllowedSection(string sectionAlias)
    Parameters
    Type Name Description
    string sectionAlias

    The alias of the section to add.

    View Source

    ClearAllowedLanguages()

    Removes access to all languages for this user group.

    Declaration
    void ClearAllowedLanguages()
    View Source

    ClearAllowedSections()

    Removes access to all sections for this user group.

    Declaration
    void ClearAllowedSections()
    View Source

    RemoveAllowedLanguage(int)

    Removes access to a language for this user group.

    Declaration
    void RemoveAllowedLanguage(int languageId)
    Parameters
    Type Name Description
    int languageId

    The ID of the language to remove.

    View Source

    RemoveAllowedSection(string)

    Removes access to a section for this user group.

    Declaration
    void RemoveAllowedSection(string sectionAlias)
    Parameters
    Type Name Description
    string sectionAlias

    The alias of the section to remove.

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX