Skip to content

Permission deny message #1265

@IeuanWalker

Description

@IeuanWalker

Using the CLI you can deny a permission with a message explaining why/ alternative approach.

It doenst look like this is possible with the current PermissionRequestResult

// Summary:
//     Result of a permission request evaluation.
public class PermissionRequestResult
{
    //
    // Summary:
    //     Permission decision kind.
    //
    //     • "approved" — the operation is allowed.
    //     • "denied-by-rules" — denied by configured permission rules.
    //     • "denied-interactively-by-user" — the user explicitly denied the request.
    //     • "denied-no-approval-rule-and-could-not-request-from-user" — no rule matched
    //     and user approval was unavailable.
    //     • "no-result" — leave the pending permission request unanswered.
    [JsonPropertyName("kind")]
    public PermissionRequestResultKind Kind { get; set; }

    //
    // Summary:
    //     Permission rules to apply for the decision.
    [JsonPropertyName("rules")]
    public IList<object>? Rules { get; set; }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions