Skip to content

Permission deny message #1265

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; }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions