In this use case, we will show you how to automatically reject calls of callers on a blacklist. For this scenario, blacklisted phone numbers are stored in a SharePoint list. To check whether the caller is on a blacklist, we use the Web Request feature of Nimbus.
INC Icon Legend Accordion
Show Icon Legend
| 💡 = A hint to signal learnings, improvements or useful information in context. | 🔍 = Info points out essential notes or related page in context. |
| ☝ = Notifies you about fallacies and tricky parts that help avoid problems. | 🤔 = Asks and answers common questions and troubleshooting points. |
| ❌ = Warns you of actions with irreversible / data-destructive consequence. | ✅ = Intructs you to perform a certain (prerequired) action to complete a related step. |
Create a SharePoint List
As a first step, create a SharePoint list with just one column named PhoneNumber and add the blacklisted phone numbers (one row each) to the list.
💡Optionally, you can also add a BlockReason column to add a note about why the phone number is on the blacklist:

After creating the SharePoint List, enable indexing for the PhoneNumber column:
- Go to your SharePoint List.
- In the top-right corner select “Settings → List settings”.

- Click Indexed columns.
- Click Create a new index. In the Primary column for this index, select PhoneNumber in the dropdown, and click Create.
💡Why enable indexing? Enabling indexing for a primary column in a SharePoint list can significantly improve performance when accessing the list via the Graph/SharePoint API, especially in scenarios involving large lists.
Create an App Registration
🔎 Also see: Quickstart: Register an application with the Microsoft identity platform | Microsoft Learn
- Go to portal.azure.com
- In your Tenant, Create an App registration, e.g. “My Nimbus App”
- Leave the other options as they are.

- After creating the App Registration, generate a client secret as follows:
- Go to “Manage → Certificates & secrets”.
- Click “New client secret”.
- Add an optional Description
- Set the Expiration for the secret and click “Add”
-
🧠Now make a note of the “Value” of the generated secret as it will be needed later for the authentication.
☝This secret value is never displayed again after you leave this page.
- Navigate to the “Overview” page of your App Registration and also make a note of the “Application (client) ID” as it will also be required for the authentication.
Grant Permissions
🔎 Also see: Configure an app to access a web API - Microsoft identity platform | Microsoft Learn
- Go to "Manage → API Permissions".
- Click “Add a permission”.
- Select "Microsoft Graph".
- Select “Application permissions”.
- Search for “sites.read.all”.
- Expand “Sites” select the “Sites.Read.All” permission and click "Add Permissions".
- Back In API Permissions, click “Grant admin consent for …” → Green Checkboxes signal the successful permission grant.

Get the IDs of the SharePoint Site and the SharePoint List
To get the ID of the SharePoint site:
- Open the SharePoint List. The URL will look like this:
- https://<tenant>.sharepoint.com/sites/<SiteName>/Lists/<ListName>/AllItems.aspx
- Manually remove “Lists/<ListName>/AllItems.aspx” and add “_api/site/id” to the URL. Now the modified URL should look as follows:
- https://<tenant>.sharepoint.com/sites/<SiteName>/_api/site/id
- Paste the modified URL into the browser. The output you will see will be similar to this:

- Make a note of the Id under “Edm.Guid” as that ID is the SharePoint site's ID.
Next, we need the ID of the SharePoint List:
- Go to your SharePoint List.
- In the top-right corner select “Settings → List settings”

- Now look at the URL in the browser, which should look similar to this one:
- https://<tenant>.sharepoint.com/sites/<SiteName>/_layouts/15/listedit.aspx?List=%7B6387cfba-616e-465d-a370-54a3db11e5ea%7D
- Make a note of the highlighted part of the URL as that ID is the SharePoint List's ID.
Creating a Parameter
In the Nimbus Admin Portal create a parameter with the name NumberFound and leave its default value empty.

We will store the answer to the web request in this parameter.
Creating the Web Request in Nimbus
First, we need to configure the authentication via the App Registration created previously:
- Navigate to the Nimbus Admin Portal.
- Under Configuration, select “Workflows → Authentication”.
- Click “Create New” and provide the following information:
- Name: Provide a name for the authentication object. (For example, My Nimbus App auth)
- Organization Unit: Select an organization unit as for any other objects created in the Nimbus Admin Portal.
- Description: Optionally you can provide a description.
- Type: OAuth 2.0 Client Credentials
-
Access Token URL: https://login.microsoftonline.com/<TenantID>/oauth2/v2.0/token
☝Make sure to replace the <TenantID> in the URL with the Tenant Id of your Microsoft tenant. - Client ID: Here you need to specify the “Application (client) ID” of your App Registration
- Client Secret: Here you need to specify the Client Secret Value of your App Registration.
- Scope: https://graph.microsoft.com/.default
- Once you provided all the necessary information, click Save.
Next, we create the Web Request itself:
- Navigate to the Nimbus Admin Portal.
- Under Configuration, select “Workflows → Web Requests”.
- Click “Create New” and provide the following information:
- On the General tab
- Name: Provide a name for the authentication object (for example, Check Blacklist).
- Organization Unit: Select an organization unit as for any other objects created in the Nimbus Admin Portal.
- Description: Optionally you can provide a description.
- On the Request tab
- Web Request Method: GET
- Authentication: Select the previously created Authentication object.
-
URL: https://graph.microsoft.com/v1.0/sites/<SiteId>/lists/<ListId>/items?expand=fields&$filter=fields/PhoneNumber eq '$(MicrosoftCallerId)'
☝Make sure to replace the <SiteId> in the URL with the Site Id of your SharePoint site, which you noted earlier.
☝Make sure to replace the <ListId> in the URL with the List Id of your SharePoint List, which you noted earlier.
- On the Response tab
- Enable Wait for Response
- Leave the Wait Timeout on 2000 milliseconds.
- Under Mapping click Add to create a response mapping with the following parameters:
- Parameter: Select the NumberFound parameter created earlier
- Response Part: Body
- Query Type: JSON Path
- Path: $.value[0].fields.PhoneNumber
- Click Save to save the response mapping.
- On the General tab
- Click Save to save the created Web Request.
Create the Nimbus Workflow
Workflow Overview

Description |
Screenshot |
|---|---|
After accepting the call, start with executing the “Check Blacklist” Web Request to check if the caller is on the blacklist.
|
![]() |
|
Witch the Check Parameter workflow activity, we check the value of the NumberFound parameter. The parameter is empty in case the phone number isn't blacklisted. If the caller is on the blacklist, then the parameter will contain the phone number of the caller. Therefore
|
![]() |

