Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

AADUser: Phone numbers missing?

Open GeldHades27355 opened this issue 10 months ago • 1 comments

Description of the issue

I can't seem to find any user phone numbers in exports, although phone number seems supported/documented. This applies to mobile, fax and phone. Other contact information seems complete and accurate. Is this a bug? Or do numbers only export when they follow certain conventions, such as (xxx) xxx-xxxx for north america? (Germany has variable length phone numbers).

Microsoft 365 DSC Version

V1.24.313.1

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration

Just
Export-M365DSCConfiguration -Components @("AADUser")
and you should see what I mean.

Verbose logs showing the problem

VERBOSE SCRIPT OUTPUT:
======================
    |---[25/27] [email protected]: Attempting connection to {MicrosoftGraph} with:
VERBOSE: 
Name                           Value                                                                                                  
----                           -----                                                                                                  
TenantId                                                                                                                              
ApplicationSecret                                                                                                                     
ManagedIdentity                False                                                                                                  
ApplicationId                                                                                                                         
Credential                     System.Management.Automation.PSCredential                                                              
UserPrincipalName              [email protected]                                                                                     
CertificateThumbprint                                                                                                                 
 
 
VERBOSE: Dependencies were already successfully validated.
VERBOSE: Credential was specified. Connecting via User Principal
VERBOSE: Dependencies were already successfully validated.
(no errors)

CONTENTS OF OUTPUT:
=================
AADUser "[email protected]"
        {
            City                 = "City";
            Country              = "Germany";
            Credential           = $Credscredential;
            Department           = "Department";
            DisplayName          = "Test User";
            Ensure               = "Present";
            FirstName            = "Firstname";
            LastName             = "Lastname";
            LicenseAssignment    = @("SPB");
            MemberOf             = @();
            Office               = "Office";
            Password             = (redacted)
            PasswordNeverExpires = $False;
            PasswordPolicies     = "None";
            PostalCode           = "Zip";
            Roles                = @();
            State                = "Province";
            StreetAddress        = "Street address";
            Title                = "Job title";
            UsageLocation        = "DE";
            UserPrincipalName    = "tuser@$OrganizationName";
            UserType             = "Member";
        }

ACTUAL CONTACT INFORMATION IN ENTRA:
=====================================
Business phone: "12345"
Mobile phone: "54321"
Fax number: "67890"

Environment Information + PowerShell Version

powershell 5.1.26100.1 Arm64

GeldHades27355 avatar Apr 04 '24 11:04 GeldHades27355

Same issue here

gitbpotalan avatar Apr 17 '24 17:04 gitbpotalan