How can you change the user logon ID on a Project 365 user record to a new O365 account programatically?

My company is in the process of moving all users to a new domain, and a consequence of this is that our O365 logon IDs will change. Each member of staff has a user account in Project Online, which is linked to the old logon IDs, and we need a way to bulk update the user records to the new logon IDs.
Is this possible in powershell or .Net script?
LVL 7
mr_nadgerAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
MaheshConnect With a Mentor ArchitectCommented:
OK thanks for confirmation

So you are just changing AD domain and not O365 tenant..

In that case you can keep same UPN in new domain for migrated users and add new forest in existing AD connect solution as other forest
Once all your users are migrated, you can discard existing AD connect and build new Ad Connect in new forest and change UPN for those users

Above approach will not work if you are using Adfs for authentication
0
 
Jian An LimSolutions ArchitectCommented:
thats fine, as long as you update Azure AD (manually or via AADCOnnect), Project online and other application (Exchange Online) will link to your OLD iD, as long as you change your current O365 logon not create a new one.
0
 
mr_nadgerAuthor Commented:
We've been given advice from Microsoft on the best way for us to migrate our domain, which creates a new O365 account. We're copying across an immutable ID which appears to fix everything apart from linking Project or SharePoint 365 accounts, hence the need to update the linked email logon (preferably programatically).
1
Simplify Active Directory Administration

Administration of Active Directory does not have to be hard.  Too often what should be a simple task is made more difficult than it needs to be.The solution?  Hyena from SystemTools Software.  With ease-of-use as well as powerful importing and bulk updating capabilities.

 
Jian An LimConnect With a Mentor Solutions ArchitectCommented:
It is really interesting that they tell you that because that is the lead option. I think they have gone through their duty of care and given you that advice.

I wonder how do you migrate your project and sharepoint data?

how do you create a new o365 account? do you have a on-premises AD and use aadconnect?

my biggest worry is that your old user are still in recycle bin and you won't get rib of it easily.
and when you empty your recycle bin, it also mean de-link a lot of things.


I give you a million advice for you but I think if you can receive advice from Microsoft before, it is best to go back to them and get them responsible of this.

This is the best outcome.
0
 
MaheshArchitectCommented:
so you are moving from one O365 tenant to another?

Use Migration wiz tool to resolve your issue
0
 
mr_nadgerAuthor Commented:
no, we're staying on the same tenant.
0
 
Jian An LimSolutions ArchitectCommented:
did you check whether your user is in recycle bin?

do you have a screenshot to tell us the issue better?
0
 
mr_nadgerAuthor Commented:
We've investigated the suggestions and unfortunately neither did exactly what we needed.
The solution we're having to use involves a third party tool as there is no native functionality to do this.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.