Reputation: 5
I am developing a Shopware 6 External App, which is integrated using the manifest.xml. Within the Shopware admin panel, my frontend is embedded using the iframe functionality from the manifest.
Now, I need to determine which admin user is currently logged in when they open my app from the menu.
I have already checked the documentation for the Admin Extension SDK: https://developer.shopware.com/resources/admin-extension-sdk/api-reference/context.html#user-information
There is a function called getUserInformation(), but the documentation states that it is not recommended to use this function.
Is there another way to retrieve the currently logged-in admin user?
Any help or alternative approaches would be greatly appreciated!
Upvotes: 0
Views: 25