Reference documentation and code samples for the Identity-Aware Proxy V1 API class Google::Cloud::Iap::V1::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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Identity-Aware Proxy V1 API - Class Google::Cloud::Iap::V1::AccessDeniedPageSettings (v1.4.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.4.1 (latest)](/ruby/docs/reference/google-cloud-iap-v1/latest/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [1.4.0](/ruby/docs/reference/google-cloud-iap-v1/1.4.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [1.3.1](/ruby/docs/reference/google-cloud-iap-v1/1.3.1/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [1.2.0](/ruby/docs/reference/google-cloud-iap-v1/1.2.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [1.1.0](/ruby/docs/reference/google-cloud-iap-v1/1.1.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [1.0.1](/ruby/docs/reference/google-cloud-iap-v1/1.0.1/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.12.0](/ruby/docs/reference/google-cloud-iap-v1/0.12.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.11.2](/ruby/docs/reference/google-cloud-iap-v1/0.11.2/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.10.1](/ruby/docs/reference/google-cloud-iap-v1/0.10.1/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.9.0](/ruby/docs/reference/google-cloud-iap-v1/0.9.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.8.1](/ruby/docs/reference/google-cloud-iap-v1/0.8.1/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.7.0](/ruby/docs/reference/google-cloud-iap-v1/0.7.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.6.0](/ruby/docs/reference/google-cloud-iap-v1/0.6.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.5.0](/ruby/docs/reference/google-cloud-iap-v1/0.5.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.4.0](/ruby/docs/reference/google-cloud-iap-v1/0.4.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.3.0](/ruby/docs/reference/google-cloud-iap-v1/0.3.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.2.0](/ruby/docs/reference/google-cloud-iap-v1/0.2.0/Google-Cloud-Iap-V1-AccessDeniedPageSettings)\n- [0.1.3](/ruby/docs/reference/google-cloud-iap-v1/0.1.3/Google-Cloud-Iap-V1-AccessDeniedPageSettings) \nReference documentation and code samples for the Identity-Aware Proxy V1 API class Google::Cloud::Iap::V1::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\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #access_denied_page_uri\n\n def access_denied_page_uri() -\u003e ::Google::Protobuf::StringValue\n\n**Returns**\n\n- ([::Google::Protobuf::StringValue](./Google-Protobuf-StringValue)) --- The URI to be redirected to when access is denied.\n\n### #access_denied_page_uri=\n\n def access_denied_page_uri=(value) -\u003e ::Google::Protobuf::StringValue\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::StringValue](./Google-Protobuf-StringValue)) --- The URI to be redirected to when access is denied. \n**Returns**\n\n- ([::Google::Protobuf::StringValue](./Google-Protobuf-StringValue)) --- The URI to be redirected to when access is denied.\n\n### #generate_troubleshooting_uri\n\n def generate_troubleshooting_uri() -\u003e ::Google::Protobuf::BoolValue\n\n**Returns**\n\n- ([::Google::Protobuf::BoolValue](./Google-Protobuf-BoolValue)) --- Whether to generate a troubleshooting URL on access denied events to this application.\n\n### #generate_troubleshooting_uri=\n\n def generate_troubleshooting_uri=(value) -\u003e ::Google::Protobuf::BoolValue\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::BoolValue](./Google-Protobuf-BoolValue)) --- Whether to generate a troubleshooting URL on access denied events to this application. \n**Returns**\n\n- ([::Google::Protobuf::BoolValue](./Google-Protobuf-BoolValue)) --- Whether to generate a troubleshooting URL on access denied events to this application.\n\n### #remediation_token_generation_enabled\n\n def remediation_token_generation_enabled() -\u003e ::Google::Protobuf::BoolValue\n\n**Returns**\n\n- ([::Google::Protobuf::BoolValue](./Google-Protobuf-BoolValue)) --- Whether to generate remediation token on access denied events to this application.\n\n### #remediation_token_generation_enabled=\n\n def remediation_token_generation_enabled=(value) -\u003e ::Google::Protobuf::BoolValue\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::BoolValue](./Google-Protobuf-BoolValue)) --- Whether to generate remediation token on access denied events to this application. \n**Returns**\n\n- ([::Google::Protobuf::BoolValue](./Google-Protobuf-BoolValue)) --- Whether to generate remediation token on access denied events to this application."]]