Class UserPermissionResource
A resource used for the
Inheritance
System.Object
Namespace: Umbraco.Cms.Core.Security.Authorization
Assembly: Umbraco.Core.dll
Syntax
public class UserPermissionResource : IPermissionResource
Properties
View SourceUserKeys
Gets the user keys.
Declaration
public IEnumerable<Guid> UserKeys { get; }
Property Value
Type | Description |
---|---|
IEnumerable<Guid> |
Methods
View SourceWithKeys(Guid)
Creates a User
Declaration
public static UserPermissionResource WithKeys(Guid userKey)
Parameters
Type | Name | Description |
---|---|---|
Guid | userKey | The key of the user. |
Returns
Type | Description |
---|---|
User |
An instance of User |
WithKeys(IEnumerable<Guid>)
Creates a User
Declaration
public static UserPermissionResource WithKeys(IEnumerable<Guid> userKeys)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<Guid> | userKeys | The keys of the users. |
Returns
Type | Description |
---|---|
User |
An instance of User |