Security Policy Errors

Delegate AD FS PowerShell Cmdlet Access to Non-Administrators

Natalie TaylorNatalie Taylor Nov 20, 2026 868 views

Question details

A user needs to delegate access to AD FS PowerShell cmdlets to non-administrators and verify the configuration when access fails.

Delegate AD FS PowerShell Cmdlet Access to Non-Administrators
Product
Active Directory Federation Services (AD FS) and PowerShell
Device & OS
not provided
Scenario
A PowerShell session configuration and role capability file are used to give non-administrators controlled access to AD FS cmdlets.
Observed behavior
Delegated access can fail even when the registered session configuration and role capability file path appear correct.
Before you start

Identify the AD FS server, registered endpoint name, delegated user or group, and the session configuration and role capability files. Open an elevated PowerShell session on the endpoint server so you can inspect the configuration and permissions.

Solution 1Recommended

Verify the AD FS delegation endpoint and test delegated access

Use this checklist to isolate configuration, permission, or connection issues before changing the delegation setup.

1
Inspect the registered endpoint

On the endpoint server, run Get-PSSessionConfiguration -Name 'AdfsDelegation' | Format-List * in an elevated PowerShell session, replacing AdfsDelegation with your endpoint name. Confirm the endpoint exists and review its permission information.

2
Check the session configuration file

Run Test-PSSessionConfigurationFile -Path 'C:\Path\To\Endpoint.pssc' against the file used to configure the endpoint. Open that file and check that its RoleDefinitions map the intended user or group to the correct role capability name.

3
Check the role capability file

On the endpoint server, locate the .psrc file in a module's RoleCapabilities folder and verify that the module is discoverable through PSModulePath. Open the file and confirm that its name matches the configured role capability and that it exposes the intended AD FS cmdlets.

4
Review access and execution permissions

Check the endpoint's security descriptor and confirm the delegated user is permitted to connect. Also verify that the endpoint can read the required files and that its execution identity has the AD FS permissions needed for the allowed commands.

5
Test the delegated session

From a client with PowerShell remoting access, run Enter-PSSession -ComputerName 'AdfsServer' -ConfigurationName 'AdfsDelegation' -Credential 'DOMAIN\User', substituting your server, endpoint, and delegated account. Run Get-Command in the session, then test an authorized AD FS cmdlet; record any error and the step where it occurs.

Verify the AD FS delegation endpoint and test delegated access
Keep delegation narrowly scoped: Expose only the cmdlets and parameters users need, and review the privileges of the endpoint's execution identity. If delegation works but a documentation step is inaccurate or unclear, record the specific discrepancy and report it to the documentation owner.
Free Microsoft Office alternative

Document AD FS Delegation Checks with WPS Office

WPS Office is a free, lightweight, easy-to-use alternative for documenting delegation checks and sharing results. Its familiar interface and Microsoft Office format support make it easy to move existing documents; it does not configure or repair AD FS.

Record endpoint checks, permission findings, and documentation corrections.Open and edit Microsoft Word, Excel, and PowerPoint formats, including DOCX, XLSX, and PPTX.Use a familiar interface to work with existing Office files.Create documents and spreadsheets in a lightweight office suite.
microsoft office alternative - wps office

Frequently Asked Questions

How can I check whether the PowerShell endpoint is registered?

On the endpoint server, run Get-PSSessionConfiguration -Name 'AdfsDelegation', replacing the name with your registered endpoint. Use Format-List * to inspect its available configuration and permission details.

Where should the role capability file be stored?

Place the .psrc file in a RoleCapabilities folder within a PowerShell module discoverable on the endpoint server through PSModulePath. The role capability name in the session configuration must match the file name without the .psrc extension.

Why can a user connect to the endpoint but still fail to run an AD FS cmdlet?

The role capability may not expose the cmdlet, or the endpoint's execution identity may lack the required AD FS permissions. Run Get-Command inside the delegated session and check the execution identity and the specific error.

What should I do if delegation works but the instructions are wrong?

Record the incorrect or unclear steps, the configuration you tested, and the result. Report those details to the documentation owner so the guidance can be reviewed and corrected.