![]() The script reads the list of contacts from a CSV file. ![]() Note: as the secret is used to authenticate the app registration, treat this secret like a password and be careful when storing it in plain text. The combination of app identifier, tenant identifier, and app secret will allow our script to authenticate and use the assigned permission to interact with user mailboxes. Moving back to the app properties, note the Application (client) ID and Directory (tenant) ID from the Overview page: Figure 2: Take note of the Application and Directory ID values.įinally, open the Certificates & Secrets page and create a new client secret. Make sure to grant admin consent for the permission to allow the script to access the contacts for all users: Figure 1: Add the Contacts.ReadWrite permission and grant admin consent. ![]() Create a new App Registration in the Azure AD Portal and add the Contacts.ReadWrite application permission. The script uses Graph API to provision the contacts, so we need an app registered in Azure AD to hold permissions and authentication (here’s another example of using the Graph with PowerShell). Mobile devices can then synchronize these contacts along with others created by the user. To solve the problem, I created a PowerShell script to read a set of standard contacts from a CSV file and write them as personal contacts to user mailboxes. For instance, Outlook mobile synchronizes only personal contacts to the device. It becomes more challenging to find this information on a mobile device because email clients don’t usually have access to the GAL. This information is often easily available in the Global Address List (GAL). For example, new users who work from outside the office benefit from knowing how to contact the IT Service Desk, HR, and other internal services. With many organizations now allowing users to work from anywhere and on any device, a new set of challenges has risen to the surface.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |