Expand my Community achievements bar.

Join us January 15th for an AMA with Champion Achaia Walton, who will be talking about her article on Event-Based Reporting and Measuring Content Groups!
SOLVED

Group ID Missmatch in Analytics API / shares and User Management API

Avatar

Level 1

Hi,

 

I'm using the Analytics API to create projects from templates. Using naming conventions, I'm trying to share the project to the correct user group. To get the group id (as required parameter for the /share endpoint) I'm querying the user management API.

 

I'm getting the correct group, but providing the id to /componentmetadata/shares gives an

 

Error EXTERNAL_API_ERROR: Could not find imsPlcId=null, groupId=XXX in globalId=XXXX

 

Using the swagger api  (/componentmetadata/shares/component/search) to debug things, I'm retrieving group id's that does not match any of the group id's I receive from the user management API. Not sure if this helps, but the Analytics API-Endpoint gives me group id's that seems to have six digits, the User Management API gives me group id's that seems to have eight and more digits. The id's have nothing obvious in common. 

 

Any hints?

 

Best Holger

 

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hey @roth4nd 

 

The Group ID that you see in Adobe Analytics is the legacy one (Analytics - All Admin - User Groups), which is actually like product profiles, but the ones you retrieve via User Management API are user groups created in the Admins Console. Hence the ID doesn't match.

Group in Adobe Analytics:

fhusain_0-1714034742549.png

 

Product Profile in Admin Console:

fhusain_1-1714034768716.png

 


Can you try fetching the Product Profile ID - https://adobe-apiplatform.github.io/umapi-documentation/en/api/getProductProfile.html

and use that particular licenseGroupID for sharing the projects.

 

To get the user IDs you can use the below two User API 2.0 - https://adobedocs.github.io/analytics-2.0-apis/

 

fhusain_2-1714034851377.png

 

 

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hey @roth4nd 

 

The Group ID that you see in Adobe Analytics is the legacy one (Analytics - All Admin - User Groups), which is actually like product profiles, but the ones you retrieve via User Management API are user groups created in the Admins Console. Hence the ID doesn't match.

Group in Adobe Analytics:

fhusain_0-1714034742549.png

 

Product Profile in Admin Console:

fhusain_1-1714034768716.png

 


Can you try fetching the Product Profile ID - https://adobe-apiplatform.github.io/umapi-documentation/en/api/getProductProfile.html

and use that particular licenseGroupID for sharing the projects.

 

To get the user IDs you can use the below two User API 2.0 - https://adobedocs.github.io/analytics-2.0-apis/

 

fhusain_2-1714034851377.png