All Apps and Add-ons

Microsoft Azure Add on for Splunk : Problem while getting AAD User logs

admin12345678
Path Finder

While configuring the AAD User log, I am getting this error. Is there anyone who can help me regrading this?

 

----------------------------------------------------------------------------------------

2020-12-22 08:42:59,793 ERROR pid=13688 tid=MainThread file=base_modinput.py:log_error:309 | Get error when collecting events.

Traceback (most recent call last):

File "C:\Program Files\Splunk\etc\apps\TA-MS-AAD\bin\ta_ms_aad\aob_py3\modinput_wrapper\base_modinput.py", line 128, in stream_events self.collect_events(ew)
 
File "C:\Program Files\Splunk\etc\apps\TA-MS-AAD\bin\MS_AAD_user.py", line 76, in collect_events input_module.collect_events(self, ew)
 
File "C:\Program Files\Splunk\etc\apps\TA-MS-AAD\bin\input_module_MS_AAD_user.py", line 36, in collect_events users_response = azutils.get_items_batch(helper, access_token, url)
 
File "C:\Program Files\Splunk\etc\apps\TA-MS-AAD\bin\ta_azure_utils\utils.py", line 55, in get_items_batch raise e
 
File "C:\Program Files\Splunk\etc\apps\TA-MS-AAD\bin\ta_azure_utils\utils.py", line 49, in get_items_batch r.raise_for_status()
 
File "C:\Program Files\Splunk\etc\apps\TA-MS-AAD\bin\ta_ms_aad\aob_py3\requests\models.py", line 940, in raise_for_status
 
raise HTTPError(http_error_msg, response=self)
 
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://graph.microsoft.com/beta/users/
-------------------------------------------------------------------------------------------------------------------
 
Thanks in advance ....

Collapse

Labels (3)
0 Karma

jconger
Splunk Employee
Splunk Employee

A 403 error is typically a permissions issue with the Azure AD app registration.  Check the permissions by going to https://portal.azure.com  Go to Azure Active Directory > App registrations > find your app registration the add-on is using > API permissions.  To get user data, you will need to have Microsoft Graph User.Read.All.

For details on the various permissions needed for specific inputs, refer to this link -> http://bit.ly/Splunk_Azure_Permissions

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Monitoring AI Agents with Splunk Observability Cloud

Let’s say I’m running a travel planning AI app in production. A user asks for three concise hotel options in ...

[Puzzles] Solve, Learn, Repeat: Tiling

This puzzle (first published here) is based on finding groups of tessellated tiles (inspired by floor tiles I ...

SOK it to Me: Top 3 Benefits of Using Splunk Operator on Kubernetes that’ll Make ...

    Thursday, July 9, 2026  |  11:00AM–12:00PM PDT Duration: 1 hour (includes Q&A) Managing can feel like a ...