Posted on 11-07-2022 02:47 AM
Hi there,
I dreamed up a way to create MDM-enabled users while at the same time using Jamf Connect and I am running in an annoying problem and I seem to not be an expert enough in Azure to fix it... if it is even possible...
So I added an ENrollment Customisation Configuration to the PreStage requiring authentication with the Azure Account. That leads to the Mac being associated with the Azure user in Jamf Pro.
I then have the PreStage pre-fill the primary account information using variables. Unfortunately I seem to only be able to pre-fill $FULLNAME or $EMAIL and both contain characters that macOS really does not like as a username. (either a space or @).
So my question is: Is there a way for me to get only the part of the UserPrincipalName / E-Mail in front of the @ out of azure, through Jamf Pro and into that Account Name field?
My plan continues with Authentication to Azure in the Jamf Connect Login Window and then connecting to the just created local account. That will downgrade the account to a standard user but maintain it a a MDM-enabled user.
Any ideas?
Posted on 11-14-2022 12:11 AM
Hi,
Have you tried "$USERNAME"?
Posted on 11-14-2022 12:55 AM
Hi Keith,
yes I have. The issue was more related to me using an SSO Enrollment Customization and that will only fill in the username from Azure and nothing else.
I am now using the login at Jamf Pro an am mapping $USERNAME to the azure attribute user.mailnickname and that works as intended.
Posted on 02-16-2023 04:23 AM
Hi MoSchulz we also have Jamf Connect with Azure but can't seem to get a MDM Capable Users. Our Azure attribute user.mailnickname is filled with the username. So we tried the $USERNAME at the Jamf pre stage but it doesn't seem to work.