Table of Contents

Class RevokeAllGrantsCommand

Namespace
Excalibur.A3.Authorization.Grants
Assembly
Excalibur.A3.dll

Represents a command to revoke all grants assigned to a specific user.

[Activity("Revoke all grants", "Revokes all grants from a user.")]
public sealed class RevokeAllGrantsCommand : AuthorizeCommandBase<AuditableResult<bool>>, IAuthorizeCommand<AuditableResult<bool>>, ICommand<AuditableResult<bool>>, ICommand, IActivity, IAmCorrelatable, IAmMultiTenant, IDispatchAction<AuditableResult<bool>>, IRequireAuthorization, IDispatchAction, IDispatchMessage
Inheritance
RevokeAllGrantsCommand
Implements
Inherited Members

Remarks

Removes every grant type within the command's authorized ambient tenant. All-tenants scope is refused by this command; explicitly authorized administrative tools use the atomic store capability directly.

Constructors

RevokeAllGrantsCommand(string, string, Guid, string?)

Represents a command to revoke all grants assigned to a specific user.

public RevokeAllGrantsCommand(string userId, string fullName, Guid correlationId, string? tenantId = null)

Parameters

userId string
fullName string
correlationId Guid
tenantId string

Remarks

Removes every grant type within the command's authorized ambient tenant. All-tenants scope is refused by this command; explicitly authorized administrative tools use the atomic store capability directly.

Properties

CorrelationId

Gets the command correlation identifier, preserved during serialization.

public Guid CorrelationId { get; }

Property Value

Guid

FullName

Gets or sets the full name of the user whose grants are being revoked.

public string FullName { get; set; }

Property Value

string

The full name of the user.

OperationId

Gets or sets the stable identity of this revocation. Preserve this value when retrying an unknown commit outcome.

public Guid OperationId { get; set; }

Property Value

Guid

RevocationScope

Gets or sets the explicit revocation scope. This preserves all-tenants intent independently of ambient tenant normalization.

public GrantRevocationScope RevocationScope { get; set; }

Property Value

GrantRevocationScope

UserId

Gets or sets the ID of the user whose grants are being revoked.

public string UserId { get; set; }

Property Value

string

The ID of the user.