You can simply export users from Microsoft 365 admin center by going to Users --> Active Users --> Click on three eclipses button --> Click "Export users" button as shown in the image below,
But in order to export Azure Active Directory users with specific user objects, please refer to the instructions below,
1. Connect Msol Service using the cmdlet below,
Note: Please install the MSOnline service using the cmdlet "Install-Module MSOnline" if not already and you can refer to Connect-MsolService (MSOnline) | Microsoft Docs for more info.
2. Run the Get-MsolUser cmdlet and export the results in a CSV file as shown below
Get-MsolUser -All | Select-Object UserPrincipalName, FirstName, LastName, DisplayName, Office, State, Title, Department, MobilePhone, WhenCreated | Export-Csv C:\Useraddress.csv
Moreover, you can add more objects to the list mentioned above and the best way to do so is to refer to the excel sheet downloaded from the Microsoft Admin Center.
Note: Please enter the objects without any spaces like "WhenCreated" in this case and refer to Get-MsolUser (MSOnline) | Microsoft Docs for more info.