Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AADUser: Phone numbers missing? #4526

Open
GeldHades27355 opened this issue Apr 4, 2024 · 1 comment · May be fixed by #5855
Open

AADUser: Phone numbers missing? #4526

GeldHades27355 opened this issue Apr 4, 2024 · 1 comment · May be fixed by #5855

Comments

@GeldHades27355
Copy link

GeldHades27355 commented Apr 4, 2024

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] tuser@solopro.workVERBOSE: Attempting connection to {MicrosoftGraph} with:
VERBOSE: 
Name                           Value                                                                                                  
----                           -----                                                                                                  
TenantId                                                                                                                              
ApplicationSecret                                                                                                                     
ManagedIdentity                False                                                                                                  
ApplicationId                                                                                                                         
Credential                     System.Management.Automation.PSCredential                                                              
UserPrincipalName              tuser@solopro.work                                                                                     
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

@gitbpotalan
Copy link

Same issue here

@FabienTschanz FabienTschanz linked a pull request Feb 27, 2025 that will close this issue
7 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants