Jump to content

Recommended Posts

Posted

Good Morning Everyone,

 

Hope everyone is having a wonderful day :).

 

Our Office 365 is always syncing with our on premise active directory, however for this one person it dosent seem to be working correctly.

For example I created the account "James Microsoft" (Name Changed for security purposes) and his username would be "microsoftj" in our active directory.

So his email in our active director says "[email protected]***********.co.uk" however in office 365 his email is coming up as "[email protected]**********.co.uk".

 

I have tried to delete his account in office 365 but it wont allow me two because it is controlled by our on premises active directory.

 

Any Help would be apprenticed.

 

Thank-you

Posted
You can delete accounts in o 365 that are syncd using powershell...

It's his upn correct? Is it just the email address?

 

Thank-you for your reply.

 

I had a feeling someone might say i could delete an account using powershell. I haven't really used powershell alot for office 365 administration however i am trying to learn how to use it.

Would you say it was quite easy to delete a user from office 365 using powershell.

 

Yes the Upn is correct and yes its just the email address on office 365 which is showing up incorrectly.

Posted

okay, first check the e-mail address and proxy address settings in AD to make sure they are correct.

 

Then before looking at powershell i'd remove the exchange license in O365 which will delete the mailbox.

Give that a little time to settle in and then try adding the license back in again.

If it comes back with the same address we'll look at powershell.

Posted
okay, first check the e-mail address and proxy address settings in AD to make sure they are correct.

 

Then before looking at powershell i'd remove the exchange license in O365 which will delete the mailbox.

Give that a little time to settle in and then try adding the license back in again.

If it comes back with the same address we'll look at powershell.

 

Thank-you for your reply. I tried removing the license and it would not work. So I have decided to remove the user from office 365 using powershell.

I did abit of research and managed to work out how to do it using powershell.

I connected to office365 using powershell firstly by using the

$msolcred = Get-Credential

Connect-Msolservice -Credential $msolcred

 

Then I did the command remove-msoluser -userprinvipalname

 

This has now worked because the user has been removed. I will now wait until the next syncing happens to see if the user re-appears correctly.

 

Thank-you once again for your help and interest.

Posted
okay, first check the e-mail address and proxy address settings in AD to make sure they are correct.

 

Then before looking at powershell i'd remove the exchange license in O365 which will delete the mailbox.

Give that a little time to settle in and then try adding the license back in again.

If it comes back with the same address we'll look at powershell.

 

Office 365.JPG

 

This is a picture of our Dirsync Log which shows that the email address is exported correctly. However when looking in office 365 admin portal the user email address is not correct.

The username created after synchronisation got number 1517 before the domain name. the domain name is not even our default domain name. The domain name should be the same as in the picture above. Eg @student.**********.co.uk instead of @***********co.onmicrosoft.com.

office 365 1.JPG

 

We have created alot of account before the account above and after the account above and never had any problem.

Posted

double check the spelling on the domain. If the domain in AD isn't registered in O365 then it defaults to the onmicrosoft.com domain.

Have you searched your mailboxes in O365 just to make sure there isn't another user with this same e-mail address?

  • Thanks 1
Posted
double check the spelling on the domain. If the domain in AD isn't registered in O365 then it defaults to the onmicrosoft.com domain.

Have you searched your mailboxes in O365 just to make sure there isn't another user with this same e-mail address?

 

Good Afternoon,

 

I have tired everything you said and none of those seemed to work. No one else on the domain has this issue. However I have kind of resolved the issue.

 

I deleted the account from our active directory and used powershell to again remove the email from office 365. I then re-created the account within active directory and force dir sync to sync the accounts to office 365 again.

 

Once the sync had completed I logged into the admin centre and the email address was showing correctly.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...