O365 Auth - Username Variables

O365 Auth - Username Variables

avatar

RDM 2021.1.44.0

Hello

We have a DVLS Server as Source and wanted to use O365 Auth for RDM Clients.
Since we need to deploy the Config to the whole Company, we cannot use "Linked Account" on DataSource Username section.
So im trying to use "Persistent" Setting with an empty Field.

This works really good, until a User hase multiple active O365 Session on his Computer, while working for other Tenants.
In this Case, he is NOT able to change the Account in RDM, since RDM only tries to direct login with that active account and failes on DVLS, because the account doesnt exists there.

So with an empty Username Field it only works, when the Users have 1 active O365 Session.
So im trying to work with the Environment Variables. It looks like, that RDM knows them, but i need the UPN (like whoami /upn).
Does RDM know a Variable like cmd snipped "whoami /upn" or something similiar?

What i need is something like this:
forum image

With an option like this it should be possible to deploy the same Config for the whole company.

Thanks,
Andreas

All Comments (4)

avatar

Hello Andreas,

While there is no UPN variable, you can build it using the username and domain variable, assuming your domain is the same one: %USERNAME%@%USERDOMAIN%.com

For example (we use .net):
forum image
Best regards,

Richard Boisvert

avatar

Hi Richard

It looks like RDM is using the general environment Variables. So i descided as workaround to deploy for every user a user environment variable with the upn parameter.
It works with that option for now.

I think this would be a good thing to implement a upn var in RDM, when the computer is a domain joined machine!

Best Regards,
Andreas

avatar

Hello Andreas,

My mistake, there is a UPN variable after all: $USER_PRINCIPAL_NAME$

Let us know if it suits your needs!

Best regards,

Richard Boisvert

avatar

Hi Richard

Thank you very much, that worked!
Really appreciate it :-)

Best Regards
Andreas