Skip to content

[Feature Request] Add Get-SafeguardAccessPolicyApprover / -Reviewer / -Requester #643

Description

@DanPeterson

Summary

Add first-class getters for an access policy's approvers, reviewers, and requesters, matching the existing Get-SafeguardAccessPolicyScopeItem / Get-SafeguardAccessPolicyAccessRequestProperty / Get-SafeguardAccessPolicySessionProperty family.

Motivation

The approver and reviewer sets are already present on the object returned by Get-SafeguardAccessPolicy (as ApproverSets and Reviewers), and requesters via RequesterProperties. But there is no direct getter, so callers have to know the internal property names and dig them out of the raw policy object. A dedicated getter is more discoverable and consistent with the other Get-SafeguardAccessPolicy* cmdlets.

This is a convenience request — the data is reachable today; the ask is discoverability and a stable contract so callers don't have to depend on internal property shapes.

Proposed API

Get-SafeguardAccessPolicyApprover  [-EntitlementToGet <o>] [-PolicyToGet] <o> [-Fields <string[]>]
Get-SafeguardAccessPolicyReviewer  [-EntitlementToGet <o>] [-PolicyToGet] <o> [-Fields <string[]>]
Get-SafeguardAccessPolicyRequester [-EntitlementToGet <o>] [-PolicyToGet] <o> [-Fields <string[]>]

Current workaround

Read .ApproverSets / .Reviewers / .RequesterProperties off Get-SafeguardAccessPolicy output.

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