Azure AD Directory Sync Issue - azure

I started with an Office 365 account, then merged my user list with Azure Active Directory. I have now setup a new (first time) domain controller, as I now wish to have apply some group policies to Office 365/Azure users.
I have a verified domain in Azure (we'll call it abcd.com), as well as a default abcd.onmicrosoft.com domain. In my local active directory I have a domain of corp.abcd.com an added an additional domain of abcd.com. I have changed a few users to [username]#abcd.com, and put in their e-mail address in the "Mail" field in the general tab in AD.
In my Azure AD - all users have the UPN format of [username]#abcd.com. I am trying to keep existing users and user names in AzureAD, and sync them with my local AD.
When I try to run the using AADSync, I get the following error (actual domain replaced with abcd.com below):
Unable to update this
object because the following attributes associated with this object have values
that may already be associated with another object in your local directory
services: [ProxyAddresses SMTP:ABossio#abcd.com;UserPrincipalName abossio#abcd.com;]. Correct or remove
the duplicate values in your local directory. Please refer to http://support.microsoft.com/kb/2647098
for more information on identifying objects with duplicate attribute values.
What is the best and easiest way that I can synchronize my Azure AD users with a local domain - for what it's worth, I have nothing important in my local AD or domain controller.

In another forum, a person suggested using the powershell script here:
http://365lab.net/2014/04/18/office-365-migrate-from-cloud-identities-to-dirsync/
First I deleted all users (which was a key step), then I manually recreated them, and ran the script above. I am now properly sync'd.

Related

Azure AD Not Syncing Mail Attribute Correctly

Let me preface this by saying I'm not that familiar at all with Azure AD, and that this is basically something I've inherited.
We have Azure AD Sync set up to sync our on-premises AD to Azure.
We've recently upgraded our SSO solution, and it's now authenticating against Azure AD. We've ran into a problem as not all of our users attributes are syncing correctly.
All these users have their on-premises mail attribute set in the form of:
jdoe#subdomain.domain.com
However, for a majority of our users that we've tracked down to, anyone created after 2018/2019 does not sync their mail attribute to this format. Instead, their mail attribute in Azure is set in the following format:
SamAccountName#domain.com
Note that for our users SamAccountName and their mail attribute do differ in the format used for the naming schema.
Now, for those who were created pre 2018/2019, their mail attribute in Azure is syncing properly in the format of:
jdoe#subdomain.domain.com
The only thing we can think of is that pre that date, we had been using one automated solution to generate our users accounts, and then post that date we switched to a different provider.
That new generation process includes a once a day provisioning of accounts into Office365.
We need these attributes to be sync'd correctly with the jdoe#subdomain.domain.com format in order to work with one of our SSO integrations.
Any thoughts on what the issue is and how to resolve it?
Solution:
After some testing, it was determined that licensing for Office365 is the culprit.
When we would assign our users licensing (Specifically Office 365 A1 for students), the following two applications would cause the overwrite of that attribute:
Information Barriers
Exchange Online
As long as the user is not licensed for those applications, everything works as expected.

How to disable the custom domains filtering in Azure AD

Do you know if there is a way to disable the only verified custom domains usage when new create a new Azure Active Directory user.For example i want to create a user that is using gmail. I have tried to add gmail as custom domain and verify it, but noticed that the steps are related to the dns records of the domain so i cannot do this. I know i can use the invitation service, but i want to directly to create the user without invitation. So did someone experienced this, and if soo i am open for advices.
Have a nice day and stay safe.
It is not possible to create a user in Azure Active Directory that is using Gmail. In order to create a user in Azure Active Directory you need to add your domain and verify in Azure Portal.
You need to get your domain name by Go daddy etc... then you need to add in Azure Active directory and verify it. After that you can create a user name under that domain.
I recommend you to go through this two documents to get more detailed information.

Connecting Blazor Server App to Azure AD - Insufficient Permissions

I am trying to create a new Blazor server app and configure it to use a new Azure Active Directory that I recently created. I have found a couple tutorials online showing how to do this, including one from Microsoft, but I keep encountering an error that says "The user account doesn't have the required permissions to access the domain."
I read online that I needed to verify that my user account is assigned to the Global Administrator role, which I did and it is. I have tried to create 3 different active directories in Azure to see if it was a fluke, but I have received the same error message each time.
Any help that you are able to provide would be greatly appreciated.
Make sure that you have signed in to Visual Studio with an admin account of the domain (here it should be "thomasagarza#yahoo.com").
After adding the account, you can apply filter for it (select the domain it is an member in). Make sure you have added it as the guest of that domain and assign Global Admin role to it.
Then all the related domains will be listed when you create a new project with Work or School Accounts Authentication. Select the domain which "thomasagarza#yahoo.com" is the admin in and click on OK. Generally you won't be required to enter your credential again in this step.
Please note if you have a custom domain for your AAD tenant and have made it primary, the domain listed here will be the custom domain name. In this case, if you manually set the domain as the format "***.onmicrosoft.com", you will get the error you are facing.

Azure App Registration change/switch directory

I am trying to set in order the Azure's Subscription of the company where I work. Long story short I have to deal with two Azure Active Directories. The first one is the main AAD (we will call it "MasterAD") where all the resources are deployed (servers, DBs, etc). The second one is a development purpose AAD ("DevAD"). In the DevAD there are two "App registrations" that we use to log in our clients in our web applications.
I would move those App registrations to the MasterAD. This way I could manage all the resources in one place without going around through ADs (and remember what is located where).
Is it possible to do that without changing the Application's IDs/Keys? I would not ask all my clients to grant again permissions for a "new" App registration.
You can't move the application object and keep the ids.
The ids will change.
I would do this:
Create new apps in MasterAD
Make sure all existing users are in MasterAD (as members or guests)
Change apps to use MasterAD instead with new client id / authority / keys
One thing to keep in mind that users' object ids are different in each directory.
One user added as a guest to another directory has a different unique id there.
If you have tied data to user object ids in a database etc., you'll have to prepare a migration to change those ids all at once.

Custom domain is "not planned" for Single Sign-On in Azure Active Directory

We have Single Sign-on working for a test application in Azure, using Azure Active Directory and the on-premise server running DirSync to synchronise the user details.
I have added a Custom Domain and verified it, by adding TXT records to the DNS entries at my registrar's website. In order to do this, I followed advice (from stackoverflow questions) that I needed to untick the option that said "I plan to configure this domain for single sign-on with my local Active Directory", in order to gain access to the additional information that allows me to prove ownership of the domain.
As a result, the domain has been verified and Azure recognises this, allowing me to see the domain as being 'verified', but the Single Sign-On value for this custom domain is set to 'Not Planned'.
The problem is now, I want to be able to re-tick that check box, and enable this domain to be used with the single sign-on, as I don't want to have to tell my users to use their log-in email addresses as 'username#something.onmicrosoft.com' as they'll never get it and will pester me to change it.
So, my question is: Is there a way to re-tick this box, and change the status of this field away from that of 'Not Planned', and (hopefully) to allow my users to sign in using their username#domain.com instead?
I have tried to remove the domain and re-add it, but Azure stops me from deleting it, as it's probably already well utilised in the rest of the processes. Also, I have no ability (or at least that's how it seems!) to go back into this custom domain within Azure and modify it.
UPDATE: I have tried to Deactivate the Directory Integration directory sync - this allows me to adjust the sync'd user's email addresses, but they're reverted back to .onmicrosoft.com once the sync is Activated again.
UPDATE 2: I have tried to install PowerShell to remotely administer the custom domain to becoming active, but I just cannot connect, despite several hours of trying.
If you added (and verified) a domain without ticking the checkbox, your domain is considered "standard", or "managed". You can convert this domain to a "federated" domain with the Convert-MsolDomainToFederated cmdlet from the Azure Active Directory PowerShell module:
Convert-MsolDomainToFederated -DomainName "contoso.com"
Tip for next time: After you add the domain with the single sign-on tick, you can run the following to get the DNS records to verify the domain:
Get-MsolDomainVerificationDns -DomainName "contoso.com"

Resources