We are getting audience in addQueryParameter('audience','unique id '); No idea how we are getting ?

J P Rohini
Tera Contributor

We are getting audience in addQueryParameter('audience','unique id '); No idea how we are getting?

addQueryParameter data we are storing in the application registry.

Kindly help me to resolve this puzzles.

2 REPLIES 2

Ana39
Tera Contributor

 

Most likely the audience value is coming automatically from the OAuth/Application Registry configuration, not from addQueryParameter() itself.

Check:

  • System OAuth > Application Registry
  • Connection & Credential Alias
  • OAuth Entity Profile

Search globally for:

 

 
audience

Very commonly, ServiceNow injects it automatically for OAuth/JWT flows (Azure, Okta, etc.).

Also check the outbound REST log to see the final generated request.

pavani_paluri
Kilo Sage

Hi @J P Rohini ,

 

Can you Please share more context here or a script snippet.