Help Integrating ServiceNow Dynamic Translation with Google Cloud Translator Spoke

mohanambalnanja
Tera Contributor

Hi Everyone,

I’m trying to set up ServiceNow Dynamic Translation using the Google Cloud Translator Service Spoke. I’ve completed the installation and successfully obtained both the JWT token and OAuth token.

I have enabled the dynamic translation attribute for Incident short description.

 

I am testing the translation using 'Translate Text' Sub flow. 

 

However, I’m encountering an error when trying to translate text.

 

Here’s the error message I receive:

{
    "Translations": [
        {
            "detected_language": null,
            "error_code": "40050",
            "error_message": "Cloud IAM permission 'cloudtranslate.generalModels.predict' denied.",
            "status": "Error"
        }
    ]
}


It seems like an IAM permission issue, but google cloud team assigned the Cloud Translation API User role (roles/cloudtranslate.user). I’ve also checked my API authentication and scopes (cloud-translation and cloud-platform).

 

Has anyone faced this issue before? Is there something else I need to configure in Google Cloud IAM or ServiceNow? Any guidance would be greatly appreciated!

 

Thank & Regards,
Mohanambal Nanjappan

3 REPLIES 3

SowmiyaC
Tera Contributor

Hi ,

Could you please share details if its implemented in our environment
Regards,

Sowmiya

mohanambalnanja
Tera Contributor

Hi @SowmiyaC ,

 

Below are the details related to Google Translator configuration 

 

Key ServiceNow Documentation Links

 

🔑 Mandatory Scopes & Roles

When configuring the Google Cloud Service Account and ServiceNow integration, ensure the following:

  • Google Cloud IAM Roles

    • Cloud Translation API Admin → allows translation requests.

    • roles/secretmanager.viewer → permits viewing secrets.

    • roles/secretmanager.secretAccessor → permits accessing secret values.

  • ServiceNow OAuth Profile Scopes

 

Simplified Integration Checklist

  1. Install Plugins

    • Dynamic Translation

    • Google Cloud Translator Service Spoke

  2. Google Cloud Setup

    • Create Project & Service Account

    • Assign roles: Cloud Translation API Admin, Secret Manager viewer/secretAccessor

    • Enable Cloud Translation API

  3. Credential Handling

    • Download JSON key

    • Convert to JKS using OpenSSL & keytool

    • Upload JKS into ServiceNow JWT Key

  4. ServiceNow Configuration

    • Create JWT Provider & JWT Key

    • Configure OAuth Profile with correct scopes

    • Link OAuth Profile to Google Translation credential

  5. Dynamic Translation Attributes

    • Incident: Short description, Description, Comments

    • Problem: Short description, Description, Comments

    • Knowledge Base: Short description, Article body

  6. Validation

    • Test Incident/Problem records in non-default language

    • Test Knowledge Base articles

Thanks

SowmiyaC
Tera Contributor

Hi , 
Is there is any other supportive plugin in addition to it ?
2. Detail explanation on Google cloud set up ?
Regards,

Sowmiya