Genesys Cloud - Developer Community!

 View Only

Sign Up

  • 1.  Resource Genesys Cloud Oauth Can't implement Restrict OAuth client credentials grants to allowed IP addresses

    Posted 09-10-2026 17:55

    I need to be able to restrict the OAuth clients with a list of allowed IPs and the option still doesn't show up in the resource

    resource "genesyscloud_oauth_client" "example_client_credential" {
    name = "Example OAuth Client"
    description = "For example purposes only"
    access_token_validity_seconds = 600
    registered_redirect_uris = ["https://example.com/auth"]
    authorized_grant_type = "CODE"
    scopes = ["users"]
    state = "active"

    }

    Help

    Doc: https://help.genesys.cloud/announcements/genesys-cloud/restrict-oauth-client-credentials-grants-to-allowed-ip-addresses/


    #CXasCode
    #PlatformAPI

    ------------------------------
    Jesus
    NA
    ------------------------------


  • 2.  RE: Resource Genesys Cloud Oauth Can't implement Restrict OAuth client credentials grants to allowed IP addresses

    Posted 09-16-2026 09:15

    Hello Jesus, 

    There are two things to be aware of here.

    The allowed IP address restriction announced by Genesys applies to OAuth clients using the Client Credentials grant. Your example is configured with:

    authorized_grant_type = "CODE"

    so the IP restriction would not apply to that OAuth client.

    Also, the genesyscloud_oauth_client Terraform resource currently does not expose an argument for configuring the allowed IP addresses. The current resource schema is documented here:

    https://registry.terraform.io/providers/MyPureCloud/genesyscloud/latest/docs/resources/oauth_client

    So even for a CLIENT-CREDENTIALS client, you won't currently see an IP allowlist option in that Terraform resource.

    The feature announcement is here:
    https://help.genesys.cloud/announcements/genesys-cloud/restrict-oauth-client-credentials-grants-to-allowed-ip-addresses/

    Hope this helps!



    ------------------------------
    Cameron
    Online Community Manager/Moderator
    ------------------------------



  • 3.  RE: Resource Genesys Cloud Oauth Can't implement Restrict OAuth client credentials grants to allowed IP addresses

    Posted 09-16-2026 15:57

    Based on the information currently available, it appears this may be a provider support gap rather than a configuration issue.

    What I found:

    • Genesys announced support for restricting OAuth Client Credentials grants to allowed IP address ranges in June 2026. The feature is configured on the OAuth client itself and applies to CLIENT-CREDENTIALS grant types. 

    • The current Terraform provider documentation for genesyscloud_oauth_client does not show an attribute for allowed IP addresses in the resource schema. The documented fields include grant type, scopes, redirect URIs, roles, token validity, etc., but no IP restriction configuration. 

    • There is an open issue in the Genesys Terraform provider repository specifically reporting that the new "Restrict OAuth client credentials grants to allowed IP addresses" feature is not exposed through the genesyscloud_oauth_client resource.


    ------------------------------
    Nafees Anwar
    M&T Bank
    ------------------------------