Forum Discussion
New to Powershell - Moving Values Between Attributes
- Jun 19, 2020
My bet, in my code snippet I did not get all needed user attributes with Get-ADUser.
By default get ad user gets 10 user attributes and otherFacsimileTelephoneNumber is not one of them.
Try this:
Get-ADUser myTestUser -Properties otherFacsimileTelephoneNumber | %{Set-ADObject -Ident ty $_.DistinguishedName -Replace @{pager=$_.otherFacsimileTelephoneNumber | select -First 1} -Clear otherFacsimileTeleponeNumber }Also keep in mind that the snippet I am providing can be used for one as well as for all users:
Get-ADUser -filter * -Properties otherFacsimileTelephoneNumber | #... everything elseHope that helps.
Hello dwmoreau,
From information provided in your post I am assuming you are using AzureADConnect to sync users and their attributes from on-prem AD to AzureAD.
You can add additional attributes to the sync using ADConnect tool:
" ...you can add missing attribute by synchronizing it from your on-premises Active Directory (AD) to Azure Active Directory (Azure AD)."
Please follow steps outlined here.
Hope that helps.
I have tried AD Connect SYNC but it does NOT Syn what Microsoft has listed it should. For instance OtherFacsimileTelephoneNumber. I opened a case with Microsoft support and I got the following response. (after months of them asking for logs and everything else).
--------------------------------------------
Hello David,
This is regarding service request ticket number 17421263.
As per the output we are only able to see the FacsimileTelephoneNumber if that us been set in the AD.
Department : XXXXXXXXXXX
DirSyncEnabled : True
DisplayName : XXXXXXXXXXX
FacsimileTelephoneNumber :
GivenName : XXXXXXXX
We were unable to see the OtherFacsimileTelephoneNumber anywhere in the office 365 which is an by design.
Please let me know if you have any more query or concern for the same.
Thank you for using Microsoft Product Support and Microsoft Products.
Warm Regards,
Tulshiram Kolekar
Microsoft Technical Support
------------------------------------------------
I then asked them what they DO Sync and they could not give me an answer.
-----------------------------------------------
Hello David,
This is in reference to Service Request: 17421263.
We have highlighted this issue to our senior escalation team and they are checking for the attribute which sync to office 365.
Once we get the list of the attribute which shows in the office 365 we will provide same to you.
As of now we donβt have any ETA for the same. Once we get any update from them we will let you know the same.
As of now we will proceed with the temporally closer on this case if you still have any issue please do reply to this email so we can get back to you.
Feel free to drop in an e-mail to me in case of any query or help required and will call you back in no time and make sure that the support delivered to you will be no less than excellent stuff.
Your satisfaction is our key concern and will make sure that our future endeavor with regards to any query will be of remembrance and will impact our relation in a positive way.
---------------------------------------
I mean if you KNOW this works somehow, I am all ears, I would rather not have to go through an edit what we already have in AD.
- Thanks!