Share Application ExtensionProperties user values across apps?

Matthew Cheah 46 Reputation points
2023-01-10T19:41:51.903+00:00

Hi all, I have 2 B2C API applications that share the same users. I'd like these users to be able to save custom data (as an ExtensionProperty) that is accessible across both apps, but of course the property is saved under the name extension_[appId]_[dataName]

Is there a simple way to get that user data from both applications, without having to use the clientId to access it? Or having to save 2 copies of the same data in different app extension properties?

Much appreciated, thank you!

Microsoft Security | Microsoft Entra | Microsoft Entra External ID
0 comments No comments
{count} votes

Answer accepted by question author
  1. Shweta Mathur 30,431 Reputation points Microsoft Employee Moderator
    2023-01-12T11:15:16.93+00:00

    Hi @Matthew Cheah ,

    Thanks for reaching out.

    I understand you are looking to share custom attribute across the applications.

    First, you need to understand extension attribute can only be registered on an application object, even though that contain user's data.

    Here the application id is not related to your registered application. This extension attribute is attached to default application b2c-extensions-app which is used by Azure AD B2C for storing the data.

    User's image

    All the extension attributes can be retrieved using the object of the that application(without hashes) and share across the applications. There is no need to save the two copies of different application to use same extension attributes.

    User's image

    Hope this will help.

    Thanks,

    Shweta


    Please remember to "Accept Answer" if answer helped you.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.