The first step is to install the Microsoft.Graph module by running the command shown below in the SharePoint online management shell (run as “administrator”). Use the “Force” parameter in the command to overwrite the existing version of Graph module.
Install-Module -Name Microsoft.Graph
![RaajRaaj_28-1667240659186.png RaajRaaj_28-1667240659186.png](https://community.esri.com/t5/image/serverpage/image-id/54880iAA45BD44CCA86A78/image-size/medium?v=v2&px=400)
The next step is to install the ArcGIS.Microsoft365 module. Run the following cmdlet to install the module.
Install-Module -Name ArcGIS.Microsoft365
The next step is to install the ArcGIS.Microsoft365 module. Run the following cmdlet to install the module.
![RaajRaaj_17-1667240248439.png RaajRaaj_17-1667240248439.png](https://community.esri.com/t5/image/serverpage/image-id/54863i8A6D051079E96CDB/image-size/medium?v=v2&px=400)
Sign-in to Azure in the PowerShell command line session with the following cmdlet before using any ArcGIS.Microsoft365 PowerShell module functions:
Connect-MgGraph -Scopes "Organization.Read.All"
![RaajRaaj_18-1667240286194.png RaajRaaj_18-1667240286194.png](https://community.esri.com/t5/image/serverpage/image-id/54864iAA8A2555D4D3E044/image-size/medium?v=v2&px=400)
Note: The tenant admin will be prompted to sign-in when running the above cmdlet.
Once signed-in and the connection to Graph API is established, the tenant administrator can now configure a list of ArcGIS connections for the map authors within the organization. Once the list of ArcGIS connections is configured, members within the organization can pick the ArcGIS connection from the drop-down, which is now part of the new sign-in experience in ArcGIS for SharePoint.
![RaajRaaj_19-1667240306453.png RaajRaaj_19-1667240306453.png](https://community.esri.com/t5/image/serverpage/image-id/54865i7ADD03376E835BE3/image-size/medium?v=v2&px=400)
Before running the PS commands to configure the ArcGIS connections, the SharePoint tenant admin has to approve the Microsoft Graph API access available under the SharePoint admin center.
![RaajRaaj_22-1667240343150.png RaajRaaj_22-1667240343150.png](https://community.esri.com/t5/image/serverpage/image-id/54869i52642750B9D26DF0/image-size/medium?v=v2&px=400)
![RaajRaaj_20-1667240306459.png RaajRaaj_20-1667240306459.png](https://community.esri.com/t5/image/serverpage/image-id/54866iBA3B30CD6AAB0CE0/image-size/medium?v=v2&px=400)
![RaajRaaj_23-1667240365241.png RaajRaaj_23-1667240365241.png](https://community.esri.com/t5/image/serverpage/image-id/54871iC91AAB5EEC1CF58D/image-size/medium?v=v2&px=400)
If you need to update the title for the ArcGIS connection string, please run the command below:
![RaajRaaj_24-1667240397183.png RaajRaaj_24-1667240397183.png](https://community.esri.com/t5/image/serverpage/image-id/54872iC17B88508EBF8063/image-size/medium?v=v2&px=400)
![RaajRaaj_25-1667240406768.png RaajRaaj_25-1667240406768.png](https://community.esri.com/t5/image/serverpage/image-id/54874iC2C4D350038FE34B/image-size/medium?v=v2&px=400)
To remove any of the existing connection strings, please use the command below:
![RaajRaaj_26-1667240422836.png RaajRaaj_26-1667240422836.png](https://community.esri.com/t5/image/serverpage/image-id/54875iA197E380FFB9BE96/image-size/medium?v=v2&px=400)
To view all existing strings, use the command below:
![RaajRaaj_27-1667240463304.png RaajRaaj_27-1667240463304.png](https://community.esri.com/t5/image/serverpage/image-id/54878iDC864D7805014D8C/image-size/medium?v=v2&px=400)
Thus, the SharePoint tenant Administrator can create, update, remove ArcGIS connection strings which can be used in the ArcGIS for SharePoint app. This utility will be particularly useful when an organization has multiple ArcGIS Online or ArcGIS portal organizations or if they want their new organization members to be able to pick the connection string from a drop-down instead of having to share the URLs with their organization members and then the members having to manually enter their ArcGIS Online or ArcGIS portal URL.