Adobe-CEP / CEP-Resources

Tools and documentation for building Creative Cloud app extensions with CEP
https://www.adobe.io/apis/creativecloud/cep.html
1.58k stars 821 forks source link

Adobe CC session/user information #496

Open ToshB opened 1 year ago

ToshB commented 1 year ago

Hi, is there a way to get some information about the Adobe CC profile for the current user in a Premiere 2023 panel?

We've got ADFS federation between adobe login and our internal AD, so if I could get the username/email for the current Adobe CC user I could use it as simple auth mechanism in my panels. Now I have to force the user through a full MFA AAD flow in every single panel (due to the lack of shared cookies), in order to load (non-sensitive) user preferences or tagging data with the current user.

Currently I'm working on a simple hack where I use the name of the user's home directory, and hope it matches the user name. Which is error-prone, but still better than all the login dialogs.

ErinFinnegan commented 1 year ago

There's a way to grab the app.userGuid which shows a string of numbers... other developer use this to identify unique users. It's probably as equally hacky as what you've come up with but slightly more reliable?

You're not the only Premiere Pro partner to complain about the multiple-login scenario. Perhaps reach out to wwds@adobe.com as well.

That said, as Premiere adapts UXP in the future, the UXP is working on making a unique user identifier of some sort, but it's still under development.

ToshB commented 1 year ago

Unfortunately that won't help me much. The information I want to look up is also referenced by other applications, and is looked up by the user's username. Unless I can pass the userGuid on to another system to request more information about the user its not that useful in my case.