Call records
Overview
Get a list of call records through the Microsoft Graph API using the HTTP Pull Listener.
HTTP Pull Listener configuration
In Falcon Onum, go to the Listeners area and click New Listener > HTTP Pull. Give a name to your new Listener and enter the following data:
Parameters
Add the following parameter:
Name -
tenant_idValue - Enter your Microsoft tenant ID.
Secrets
You must define these credentials in Onum:
client_idwill reference your Microsoft Graph client ID.client_secretwill reference your Microsoft Graph client secret.
To do it, click Add element and enter a Name for the secret (in this case, client_id). Then, click the Value field and select New secret to create a new one:
Give the secret a Name.
Turn off the Expiration date option.
Click Add new value and paste the secret corresponding to the value.
Click Save.
You can now select the secret you just created in the Value field list. Repeat the process for the client_secret.
Learn more about secrets in Onum in this article.
Setup
After entering the required parameters and secrets, you can choose to manually enter the rest of configuration fields, or simply paste the given YAML:
Toggle ON the Config as YAML option to enable a free text field where you can paste the following YAML:
Temporal Window
Toggle ON to add a temporal window for events. This repeatedly shifts the time window over which data is collected.
Duration -
5mOffset -
5mFormat -
RFC3339
Authentication
Toggle ON and configure these parameters:
Type* -
Token
Token Retrieve Based Authentication
Request
Method* -
POSTURL* -
https://login.microsoftonline.com/${parameters.tenant_id}/oauth2/v2.0/token
Headers
Name -
Content-TypeValue -
application/x-www-form-urlencodedName -
AcceptValue -
application/json
Body Type* -
URLEncodedBody Params
Name -
client_idValue -
${secrets.client_id}Name -
client_secretValue -
${secrets.client_secret}Name -
scopeValue -
https://graph.microsoft.com/.defaultName -
grant_typeValue -
client_credentials
Token path* -
.access_tokenAuth Injection
In* -
HeaderName* -
AuthorizationPrefix -
'Bearer 'Suffix -
''
Collection Phase
Pagination Type* -
Next Link at Response BodySelector* -
.["@odata.context"]
Request
Response Type* -
JSONMethod* -
GETURL* -
https://graph.microsoft.com/v1.0/communications/callRecords
Headers
Name -
AcceptValue -
application/jsonName -
Content-TypeValue -
application/json
Query Params
Name -
$filterValue -
startDateTime ge ${temporalWindow.from} and startDateTime lt ${temporalWindow.to}
Output
Select* -
.valueMap -
.Output Mode* -
element
When you're done, click Create labels to move on to the next step and define the required Labels if needed.
Last updated
Was this helpful?

