How to aggregate the users with the combination of roles and teams account information

We deployed an application called Veracode but during the account aggregation its bringing only the account information without roles and entitlements. As a workaround we are bringing the roles and teams details through a single account aggregation but we are facing a consequence here like everytime when we run the user account aggregation roles and teams details are getting wiped out from user accounts.

Veracode support team has confirmed they dont have an endpoint which provides user details along with roles and teams.

JSON data of user info.

users": [
{
“user_id”: “xxxxxxxxxxxxxxx”,
“user_legacy_id”: xxxxxx,
“user_name”: “xxxxxxxx”,
“email_address”: “xxxxxxxxxxxxx”,
“saml_user”: xxxxx,
“login_enabled”: xxxxx,
“_links”: {
“self”: {
“href”: "https://xxx.veracode.com/api/authn/v2/users/xxxxxxx
}
}
}

For the single account aggregation, are you able to retrieve a single user account’s entitlements?

If so, have you looked at chaining two Account Aggregation operations. First one gets a list of all the user accounts. Second gets the entitlements for each individual account. Refer to the Web Services Connector guide for details.

@Paul_Meyer Thanks for your reply.
Yes we are able to retrieve the user details with roles using single account aggregation but everytime when we run the user account aggregation roles are getting uncorrelated from user identity.

You will most likely then have to chain two Account Aggregation operations together to get the full account with entitlements in the Account Aggregation task.