Intermittent "You're unauthorized to access Citrix Cloud" Error During ADFS SAML-Based Administrator Logon in Multi-Domain Active Directory Forests

book

Article ID: CTX697285

calendar_today

Updated On:

Description

  • Product Line: Citrix Cloud Platform (CCP) / Citrix DaaS

  • Component: Identity and Access Management (IAM) / SAML 2.0 Administrator Authentication (SAML - Administrator) / Delegated Administration Service (DAS)

  • Identity Provider (IdP): Active Directory Federation Services (ADFS)

  • Directory Infrastructure: Active Directory Multi-Domain Forest

  • Authentication Endpoint: https://saml.cloud.com/saml/acs

  • Affected Roles: Citrix Cloud Administrators

Observed Symptoms

  • Administrators attempting to sign in to Citrix Cloud are intermittently redirected to an authorization failure landing page:

     
     
     
    You're unauthorized to access Citrix Cloud
  • HAR network traces confirm successful authentication at the IdP followed by a redirection to the unauthorized endpoint on Citrix Cloud.

  • SAML tracer logs confirm that the ADFS token is issued successfully with all required claims populated (cip_upn, displayName, firstName, lastName).

Diagnostic & Telemetry ( Requires Citrix support to validate this information )

Backend service logs indicate that although SAML token validation succeeds, Citrix Cloud fails during administrator group enumeration:

  • Trust Service:

     
     
     
    EventType=Diagnostic ServiceName=Trust Message=RetryFinished: 1 Operation: Get administrator groups for <CCID>.
  • DelegatedAdministration Service:

     
     
     
    EventType=Error ServiceName=DelegatedAdministration CallerServiceName=Administrators Message={"detail":"","statusCode":404,"type":"https://errors-api.cloud.com/common/notFound"}

Cause

  1. Active Directory Group Scope Limitation:

    • The Active Directory security groups configured for Citrix Cloud administration had their GroupScope set to DomainLocal.

  2. Global Catalog Query Behavior in Multi-Domain Forests:

    • In a multi-domain forest deployment, Citrix Cloud (ADAgent on the Cloud Connector) queries the Active Directory Global Catalog to resolve group memberships.

    • Citrix Cloud does not target or pin requests to a specific Domain Controller or domain partition.

    • By Active Directory architectural design, only Universal Security Groups replicate group memberships across all Global Catalog servers in the forest. Domain Local groups and cross-domain memberships of Global groups are not replicated forest-wide to every Global Catalog server.

    • When an ADAgent query hits a Global Catalog server outside the local domain partition of the group, the group membership is not returned. Delegated Administration consequently throws a 404 Not Found error and denies access.

Resolution

Step 1: Convert Administrator Security Groups to Universal

  1. Open Active Directory Users and Computers (dsa.msc) or use Active Directory PowerShell module.

  2. Locate the security groups configured for administrative access in Citrix Cloud.

  3. Change the group scope from Domain Local (or Global) to Universal.

    • PowerShell command:

 
 
 
Set-ADGroup -Identity "<AdminSecurityGroupName>" -GroupScope Universal

(Note: If converting directly from Domain Local to Universal is blocked due to member group hierarchies, first convert Domain Local to Universal, or recreate/adjust group nesting per Active Directory rules).
4. Allow forest-wide Active Directory replication to synchronize changes to all Domain Controllers and Global Catalog servers.

Step 2: Verify Forest-Wide Group Membership Replication

Run the diagnostic PowerShell script across all Global Catalog servers in the forest to verify that every GC returns the expected group memberships:

  • Script (Citrix Support can provide this script): Get-GlobalCatalogGroups.ps1Get-GlobalCatalogGroups.ps1

  • Confirm that every Domain Controller/Global Catalog consistently returns the administrator group membership for the affected user UPNs.

Issue/Introduction

When Active Directory administrators attempt to authenticate to the Citrix Cloud management console using SAML 2.0 via Active Directory Federation Services (ADFS) in a multi-domain forest, logons intermittently fail with the error:

"You're unauthorized to access Citrix Cloud"

This issue occurs when the Active Directory security groups assigned administrative permissions in Citrix Cloud are configured with a DomainLocal (or Global) scope instead of a Universal scope. In multi-domain forests, Citrix Cloud Connector (ADAgent) queries the Active Directory Global Catalog (GC) across domain boundaries without pinning queries to a specific Domain Controller. Because non-universal security group memberships are not replicated across the entire forest Global Catalog, Citrix Cloud fails to enumerate the user's administrative group memberships, resulting in an authorization failure.

Additional Information

  • Best Practice: When configuring SAML, ADFS, or Azure AD identity federation in any multi-domain Active Directory forest, always use Universal Security Groups for Citrix Cloud role mapping to ensure consistent group discovery across all Cloud Connector queries.