You configured Microsoft Entra ID. You configured the Oracle GoldenGate authorization profile. The certificates are in place. The client ID looks right. The secret is right. You request a token and Microsoft happily gives you one.
So everything should work, right?
Well… that would make troubleshooting far too easy.
While testing my GoldenGate integration with Microsoft Entra ID, I found that simply getting an access token does not tell you very much. Entra ID can issue a perfectly valid token that still does not contain what you expect, or is not intended for the resource you think it is.
Before changing another GoldenGate parameter, regenerating another secret, or staring at the authorization profile hoping something magically changes, it is worth asking a much simpler question:
What is actually inside the token?
In this post I will use Postman to look at the tokens involved in my GoldenGate and Entra ID setup. More importantly, we will look at two different scenarios: an application token used for service-to-service access to GoldenGate, and the token generated when a user authenticates, where group membership becomes important for GoldenGate role mapping.
Tested environment
This article is based on my lab using Oracle GoldenGate 26ai for Oracle, version 23.26.3.0.3 with Microsoft Entra ID and Postman. The token and authorization behavior shown below is what I observed with that setup, so verify the details against your GoldenGate release and Entra configuration if you are testing something different.
A quick recap of the GoldenGate and Entra ID setup
This post is not another complete Entra ID configuration guide. I already covered that setup separately in this blog: Oracle GoldenGate and Microsoft Entra ID: Configuring External Authentication and Authorization. Here I want to concentrate on troubleshooting the tokens themselves.
There are two parts of the configuration that are especially relevant for what we are about to test.
- The GoldenGate application defines an application role with the value
urn:ogg:serviceToService. Oracle documents this role as part of the Entra ID configuration for GoldenGate. - For interactive users, Entra ID security groups are mapped to the GoldenGate Security, Administrator, Operator and User roles. The token therefore needs to expose the group information in the form expected by the configuration.
Those are two very different things, and mixing them up can send troubleshooting in the wrong direction surprisingly quickly.
First, a token is not just a token
An OAuth access token is issued for a particular resource and carries a set of claims describing the caller and the permissions associated with that token.
For troubleshooting, a few claims are particularly interesting:
aud: the intended audience of the token.iss: who issued it.tid: the Entra tenant.oid: the object identifier for the identity represented by the token.roles: application roles granted to the caller.scp: delegated scopes. You normally see this with user/delegated access tokens rather than client-credential application tokens.groups: group memberships emitted for a user when group claims are configured.exp: when the token expires, because sometimes the problem really is that boring.
One important detail here: urn:ogg:serviceToService is the GoldenGate application role value. It is not something I would blindly expect to find in aud. For an application token, the interesting check is that the token is for the correct GoldenGate resource and that the expected application permission appears in roles.
That distinction is exactly why looking at the token is useful.
Token #1: Can this application call GoldenGate?
Let’s start with the service-to-service case.
Oracle’s documented Entra ID configuration creates an application role for GoldenGate with:
urn:ogg:serviceToService
Another application can be granted this application permission and use the OAuth 2.0 client credentials flow to obtain an access token for GoldenGate.
Requesting the token with Postman
For the client credentials flow, the token request goes to the Entra ID v2 token endpoint using POST. For example:
POST https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token
The body is sent as application/x-www-form-urlencoded and contains something similar to:
client_id=<client-id>client_secret=<client-secret>scope=<goldengate-resource-client-id>/.defaultgrant_type=client_credentials
If everything is accepted, Entra ID returns an access_token.

HTTP 200. Token received. Time to celebrate?
Not yet.
What I want to see in this token
Once I have the token, I can decode the JWT payload for troubleshooting and inspect the claims. Postman can help here, or you can copy the token into another JWT inspection tool. Just remember that access tokens are credentials. Decoding the payload is useful for inspection, but it does not by itself validate the token signature, issuer, audience or lifetime.
For this test I am interested in two questions.
- Was the token issued for the GoldenGate resource I intended to call?
- Does the application token contain the GoldenGate service application role?
The second one is especially easy to verify. In the application token I expect the roles claim to include:
"roles": [ "urn:ogg:serviceToService"]

If that role is missing, I have learned something useful before GoldenGate even enters the conversation. I can go back to the Entra ID application permission, app-role assignment and admin-consent configuration instead of randomly changing GoldenGate.
The aud claim deserves attention too. Microsoft defines it as the intended audience of the token, and the receiving API should reject a token that is not intended for it. The exact representation can depend on the token version and resource configuration, so I prefer to compare it with the actual GoldenGate application registration rather than assume that the literal role value should appear there.
Token #2: Does GoldenGate know which groups this user belongs to?
The interactive user case is different.
In the Entra ID configuration documented by Oracle, GoldenGate authorization profiles can map the configured Entra group values to GoldenGate roles. In my lab, I used this to map groups to GoldenGate roles and then checked what actually appeared in the token.
But there is an obvious requirement hidden inside that sentence: GoldenGate needs to receive enough group information to make that mapping.
If the user belongs to the correct group in Entra ID but the token does not carry that information in the expected form, the fact that the group exists in the portal does not help very much.
Get a token as the user
This time I want a token associated with an authenticated user rather than an app-only client-credentials token. The goal is simple: I want to see what Entra ID puts inside the token for that user, especially the groups claim GoldenGate needs for authorization.
For this lab I am using the Resource Owner Password Credentials (ROPC) flow, which Postman shows as Password Credentials. It lets me provide the credentials of my test user directly and obtain an access token without going through an interactive browser login.
In Postman, create an OAuth 2.0 token and select Password Credentials. The relevant values in my test are:
- Access Token URL:
https://login.microsoftonline.com/<tenant-id>/oauth2/v2.0/token - Client ID: the Client ID of the Entra application used by GoldenGate.
- Client Secret: the client secret configured for the Entra application.
- Client Authentication: in my Postman test, Send as Basic Auth header.
- Username: the UPN of the Entra test user.
- Password: the test user’s password.
- Scope:
<client-id>/.default
Then click Get New Access Token. Postman authenticates with the user credentials and gives us the JWT we want to inspect.
A small but important note: I am using ROPC only because it is convenient for this controlled lab test. Microsoft considers this flow deprecated, and it does not work with MFA. I am using it here to inspect the access token issued for my test user, not to reproduce GoldenGate’s complete browser-based sign-in flow. This is a troubleshooting shortcut, not a production authentication design.





Once Postman returns the token, we can inspect the payload and see what Entra ID actually included for this user.

Now the interesting claim changes.
Find the groups claim
Oracle’s GoldenGate configuration instructs us to add a groups claim for groups assigned to the application. It also instructs us to add cloud_displayname to the optional claims in the application manifest.
That second detail matters. Microsoft Entra ID normally represents group membership using group object IDs, but cloud_displayname can emit the display name for cloud-only groups when the application is configured to emit groups assigned to the application. GoldenGate’s authorization profile maps the configured Entra group names to GoldenGate roles, so this is something I definitely want to verify rather than assume.

For example, if my GoldenGate Administrator mapping points to a group called:
OGG_Security
I want to confirm that the token actually contains the group information GoldenGate is going to use for that mapping.
This sounds obvious when written down. It becomes considerably less obvious after 45 minutes of checking client IDs and certificates.
The test I really want to show
I think the most useful troubleshooting test is not simply showing a working token. It is comparing a token that is missing what GoldenGate needs with one generated after fixing the configuration.
Before
Request a fresh user token with the group-claim configuration missing or incomplete.
For example, I removed the group claim from the Entra ID configuration:

Let’s get a token!

As you can see, the user can exist. The user can be a member of the correct Entra group. Authentication can succeed. And yet the user access token issued by Entra ID may still not contain the group information configured for authorization.
Let’s try to log in to the OGG deployment:

In the browser, GoldenGate logs me out and asks for credentials again. That does not tell me much by itself, but the Service Manager log makes the problem much clearer:

In this test, the log shows GoldenGate attempting to obtain the user’s group membership through Microsoft Graph (/me/memberOf), followed by an HTTP 401 and an error obtaining the groups. I am treating that as an observation from this lab, not as a statement that every GoldenGate release follows the same fallback path.
After
Fix the group claim configuration, make sure the relevant groups are assigned to the Enterprise Application, and make sure the test user is a direct member of the expected group. With the “Groups assigned to the application” configuration used here, nested group membership is not emitted. Then request a new token and inspect it again.

And… don’t forget to check the application manifest.

And finally, get a new token.
That last part is easy to forget. Changing the Entra configuration does not travel back in time and rewrite the token sitting in your clipboard. Get a fresh one.

Two tokens, two different questions
| Application / service token | User token | |
|---|---|---|
| Main question | Can this application call the GoldenGate resource? | Can GoldenGate identify and authorize this user? |
| Flow | Client credentials | User token (ROPC for this lab test) |
| Claims I care about | aud, roles, tid | aud, oid, groups, scp, tid |
| GoldenGate-specific check | roles contains urn:ogg:serviceToService | The expected mapped Entra group is present in the form GoldenGate expects |
| If it is wrong | Check app roles, API permissions, consent and requested resource | Check group assignment, group claims, optional claims and the authorization-profile mapping |
This is the mental model that made the troubleshooting much clearer for me.
Instead of asking, “Does Entra ID work?”, ask a smaller question:
What is this particular token supposed to prove, and does it actually contain the claims required to prove it?
One edge case worth remembering
There is one token-related edge case I would keep in mind outside a small lab tenant: group overage. Microsoft limits how many group entries can be emitted directly in a JWT. If the number of groups eligible to be emitted exceeds that limit, Entra ID can return an overage indication instead of the normal groups array.
With the “Groups assigned to the application” configuration used here, this is about the groups eligible for emission under that configuration, not every unrelated group the user happens to belong to in the tenant. It was not the problem in my lab, but it is worth remembering in a larger environment.
What I took away from this test
The useful part of this exercise was not learning how to decode a JWT. It was having a checkpoint between Entra ID and GoldenGate.
When I removed the group claim, Entra ID still authenticated the user and still gave me a token. GoldenGate, however, no longer had the group information my authorization configuration depended on. The browser was not especially helpful about that. The token and the Service Manager log were.
That is probably the habit I will keep from this test: before changing GoldenGate configuration because authentication or authorization looks wrong, get the token and look at what Entra ID actually issued. Sometimes the missing piece is sitting there in plain sight. Or, as in this case, not sitting there at all.
References
- Oracle GoldenGate: Configure Microsoft Azure EntraID for Oracle GoldenGate
- Oracle Data Integration Blog: Using Entra ID Access Token for GoldenGate Adminclient and REST API Call Authentication
- Microsoft: Access token claims reference
- Microsoft: Configure group claims for applications using Microsoft Entra ID





Leave a Reply