public sealed class AccessDeniedPageSettings : IMessage<AccessDeniedPageSettings>, IEquatable<AccessDeniedPageSettings>, IDeepCloneable<AccessDeniedPageSettings>, IBufferMessage, IMessage
Reference documentation and code samples for the Cloud Identity-Aware Proxy v1 API class AccessDeniedPageSettings.
Custom content configuration for access denied page.
IAP allows customers to define a custom URI to use as the error page when
access is denied to users. If IAP prevents access to this page, the default
IAP error page will be displayed instead.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eAccessDeniedPageSettings\u003c/code\u003e class is 2.7.0, part of the Google Cloud Identity-Aware Proxy v1 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows for custom configuration of an access denied page, including specifying a custom URI for redirection when access is denied.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAccessDeniedPageSettings\u003c/code\u003e class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of the class include \u003ccode\u003eAccessDeniedPageUri\u003c/code\u003e for the custom URI, \u003ccode\u003eGenerateTroubleshootingUri\u003c/code\u003e for generating troubleshooting URLs, and \u003ccode\u003eRemediationTokenGenerationEnabled\u003c/code\u003e for generating remediation tokens.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAccessDeniedPageSettings\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.Iap.V1\u003c/code\u003e namespace and is contained in the \u003ccode\u003eGoogle.Cloud.Iap.V1.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"]]],[],null,["# Cloud Identity-Aware Proxy v1 API - Class AccessDeniedPageSettings (2.8.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.8.0 (latest)](/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/2.7.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/2.6.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/2.5.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/2.4.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/2.3.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/2.2.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/2.1.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/2.0.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/1.2.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/1.1.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Iap.V1/1.0.0/Google.Cloud.Iap.V1.AccessDeniedPageSettings) \n\n public sealed class AccessDeniedPageSettings : IMessage\u003cAccessDeniedPageSettings\u003e, IEquatable\u003cAccessDeniedPageSettings\u003e, IDeepCloneable\u003cAccessDeniedPageSettings\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Cloud Identity-Aware Proxy v1 API class AccessDeniedPageSettings.\n\nCustom content configuration for access denied page.\nIAP allows customers to define a custom URI to use as the error page when\naccess is denied to users. If IAP prevents access to this page, the default\nIAP error page will be displayed instead. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e AccessDeniedPageSettings \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AccessDeniedPageSettings](/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AccessDeniedPageSettings), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AccessDeniedPageSettings](/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AccessDeniedPageSettings), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AccessDeniedPageSettings](/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1.AccessDeniedPageSettings), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Iap.V1](/dotnet/docs/reference/Google.Cloud.Iap.V1/latest/Google.Cloud.Iap.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Iap.V1.dll\n\nConstructors\n------------\n\n### AccessDeniedPageSettings()\n\n public AccessDeniedPageSettings()\n\n### AccessDeniedPageSettings(AccessDeniedPageSettings)\n\n public AccessDeniedPageSettings(AccessDeniedPageSettings other)\n\nProperties\n----------\n\n### AccessDeniedPageUri\n\n public string AccessDeniedPageUri { get; set; }\n\nThe URI to be redirected to when access is denied.\n\n### GenerateTroubleshootingUri\n\n public bool? GenerateTroubleshootingUri { get; set; }\n\nWhether to generate a troubleshooting URL on access denied events to this\napplication.\n\n### RemediationTokenGenerationEnabled\n\n public bool? RemediationTokenGenerationEnabled { get; set; }\n\nWhether to generate remediation token on access denied events to this\napplication."]]