<turbo-stream action="update" target="wiki_card"><template>
<h1>How to connect to Microsoft Graph</h1>
<p>Here's a simple guide on how to connect to Microsoft Graph API:<br><br><strong>A</strong>. <strong>Configuration in Azure Portal:</strong></p><ol><li>Login to portal.azure.com</li><li>Go To <strong>Microsoft Entra ID</strong></li><li>Go To <strong>App Registrations</strong></li><li>Click <strong>+ New registration</strong><ul><li>Name = [your App Name] (Example: <strong>RapidiBCApp</strong>)&nbsp;</li><li>[Section] Supported account types &gt; Select :&nbsp; ... <strong>Single tenant</strong></li></ul></li><li><strong>Click Register</strong></li><li>&nbsp;Within same screen:&nbsp;<ul><li>&nbsp;On the API permissions page for your app, click the <strong>Add a permission</strong> button.&nbsp;</li><li>&nbsp;Make sure the <strong>Microsoft APIs</strong> tab is selected. In the <em>Commonly used Microsoft APIs</em> section, click on <strong>Microsoft Graph</strong> and select first <strong>Delegated permissions </strong>and then<strong> Application Permissions.</strong></li><li>Ensure that the right permissions are checked in both cases;</li><li>Click the <strong>Add permissions</strong> button.&nbsp;</li><li>You will be returned to the previous screen, and there you have to click <strong>Grant Admin Consent for ...</strong>. click there.&nbsp;</li></ul></li><li>Within same screen, From the <strong>Certificates &amp; secrets</strong> page, in the Client secrets section, choose <strong>New client secret</strong>:&nbsp;</li></ol><ul><li>Type a key description (of instance app secret),&nbsp;</li><li>Select a key duration of either In 1 year, In 2 years, or Never Expires.&nbsp;</li><li>When you press the Add button, the key value will be displayed, copy it, and save the value in a <strong>safe location</strong>.&nbsp;</li></ul><ol><li>Keep the Application Id and the Application secret in a safe location – we will need these later.&nbsp;</li></ol><p><br><strong>B. Configuration in Rapidi:<br></strong><br></p><ol><li>Login to MyRapidi and navigate to the 'Connections' page and choose<strong> ODATA;</strong></li><li>The fields of the <strong>ODATA</strong> Connection are as follows:&nbsp;</li></ol><ul><li><strong>Code</strong>: auto-populated&nbsp;</li><li><strong>Description</strong>: – type a proper description&nbsp;</li><li><strong>Authentication Type</strong>:&nbsp; Oauth2 (Azure AD)&nbsp;</li><li><strong>Server Connect</strong>: This is the endpoint to which the OData connection is being made. It can specifically target a specific resource within Microsoft Graph API. One example would be https://graph.microsoft.com/v1.0/9efb0c96-7560-4413-85b2-e931f9c1fd2d/users</li><li><strong>Company</strong>: Enter Company Name or you can leave it blank.&nbsp;</li><li><strong>User Id</strong>: This is the application Id (that was created on first step).</li><li><strong>Password</strong>: This is the client secret/application secret (created on the first step)&nbsp;</li><li><strong>Domain</strong>: This is the tenant id of Azure, e.g. you can find it under<strong> Server Connect</strong> field.</li><li><strong>STS Endpoint/URN</strong>: Enter https://graph.microsoft.com</li><li><strong>Metadata URL</strong>: https://graph.microsoft.com/v1.0/$metadata</li><li><strong>Use SSL</strong>: Mark it as True&nbsp;</li></ul>
</template></turbo-stream>

<turbo-stream action="replace" target="meta_description"><template><meta content='How to connect to Microsoft Graph' id='meta_description' name='description'></template></turbo-stream>
<turbo-stream action="replace" target="meta_keywords"><template><meta content='Microsoft Graph Connection setup ODATA' id='meta_keywords' name='keywords'></template></turbo-stream>
<turbo-stream action="update" target="meta_title"><template>How to connect to Microsoft Graph - MyRapidi Wiki</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
