Fix Microsoft AD FS OpenID Connect Error MSIS9321
Question details
The user needs to troubleshoot AD FS Event ID 364 and OpenID Connect error MSIS9321, which reports that the client is forbidden to access the selfscope resource.

- Product
- Microsoft Active Directory Federation Services (AD FS)
- Device & OS
- not provided
- Scenario
- An OpenID Connect client requests authentication through AD FS, but authorization for the requested resource fails.
- Observed behavior
- AD FS records Event ID 364 with an invalid OAuth request error stating that the client is forbidden to access the selfscope resource.
Have an AD FS administrator collect the full Event ID 364 message, request timestamp, client ID, redirect URI, resource, and scopes from the failed request. Confirm which AD FS application group or trust belongs to the client before changing permissions.
Check the client's resource permissions and AD FS access control policy
Use this check first when MSIS9321 explicitly states that the client is forbidden to access selfscope.
The error points to an authorization mismatch, but the event alone does not identify the exact configuration problem. Check both the client-to-resource permission relationship and the applicable access control policy.
OpenID Connect applications are commonly configured under Application Groups. Review a Relying Party Trust only if it is part of this application's actual configuration.
On the AD FS server, open Event Viewer > Applications and Services Logs > AD FS > Admin. Locate Event ID 364 at the failed sign-in time and record the client, resource, error details, and activity ID if present.
Open AD FS Management > Application Groups and locate the group containing the client ID from the request. Inspect its client and Web API entries, where applicable, and compare their identifiers with the requested resource.
In an administrative PowerShell session on the AD FS server, run Get-AdfsApplicationPermission to inspect configured client-to-resource permissions. Check that the relevant client and resource identifiers have the required permissions and scopes; do not add broad grants merely to bypass the error.
In AD FS Management, open the relevant Web API properties and review its access control policy and permitted clients. If the deployment uses a Relying Party Trust for this flow, open AD FS Management > Relying Party Trusts and verify that the intended policy is applied to that trust.
After the administrator corrects any confirmed mismatch, start a new sign-in from the client application. Return to AD FS > Admin in Event Viewer and check whether MSIS9321 recurs.

Validate OpenID Connect settings and escalate persistent failures
Use this path when permissions appear correct or the error continues after policy checks.
Use WPS Office for everyday document work while AD FS is investigated
WPS Office does not repair AD FS policies or resolve MSIS9321. For document work that does not depend on your organization's AD FS-protected services, it offers a free, lightweight Office alternative with a familiar interface and Microsoft Office format compatibility for a smooth transition.

Frequently Asked Questions
What does AD FS error MSIS9321 mean?
In this scenario, it means AD FS rejected an OAuth request because the client was not authorized to access the selfscope resource. Check the full message under Event Viewer > Applications and Services Logs > AD FS > Admin to identify the affected request.
Should I check Application Groups or Relying Party Trusts?
For an OpenID Connect application, start with AD FS Management > Application Groups and locate the registered client and related Web API, where applicable. Check Relying Party Trusts only if that trust is part of the application's configuration.
Does Event ID 364 always indicate a client permission problem?
No. Event ID 364 can accompany different federation request failures. Use the detailed error text, such as MSIS9321 and the selfscope message, to narrow the investigation rather than relying on the event number alone.
What should I do if the permissions and policy already look correct?
Compare the actual client ID, redirect URI, resource, and scopes with the registered configuration. If the error persists, provide sanitized event details and configuration information to Microsoft support or a dedicated AD FS support forum.
Can installing WPS Office fix the AD FS authentication error?
No. WPS Office cannot change server-side AD FS authorization or restore access to protected services. It can serve as an alternative for working with locally available Office-format documents while the AD FS issue is investigated.




