Comments (7)
Hey RiddhiKarani,
Couple of quick questions to help troubleshoot:
- Did you populate the config file with the tenantid, appid, and app secret? Can you tell if the script is pulling the config values?
- Did you grant your app in AD the correct claims to access the management activity api?
- Is the app id registered in the same tenant that you are trying to pull the data from?
Detailed instructions on how to register the application are here: https://msdn.microsoft.com/EN-US/library/office/dn707383.aspx.
Thanks,
Brandon
from o365-investigationtooling.
yes, i have just not configured a webhook nor certificate for service to service calls.
rest everything is as per that blog, finally got this working.
any reason you are making call for every hour? cant we do one call for a day and still get same data?
from o365-investigationtooling.
Hi RiddhiKarani! Glad you got it working. The main reason for building a call set by the hour is mostly to get it to work against very large tenancies that have large volumes of data. Early versions of the API had trouble with the paging feature that would return results with a reference to a subsequent page of blobs if there were more. Cranking the pulls down to an hour allowed me to iterate more quickly for troubleshooting. :) You are correct that you'll get the same data by making a call for a full day!
Thanks,
Brandon
from o365-investigationtooling.
great, one more query have you tried adding the webhook and subscribing as a listener to the API?
from o365-investigationtooling.
Hi RiddhiKarani. Thanks for the follow-up. We have certainly tested the webhook subscription model, and we have many consumers that leverage the model. We did not implement a listener service in Powershell, however. If you have a managed code solution, the listener piece should be pretty straightfoward. Thanks! Brandon
from o365-investigationtooling.
do you have any sample for the code solution with webhook for management api?
from o365-investigationtooling.
i updated the powershell script to include webhook but the response output i get shows null for webhook.
$webhook=@"
{
"webhook" : {
"address": "https://o365managementapiwebhook.azurewebsites.net/",
"authId": "o365activityapinotification",
"expiration": ""
}
}
"@
$jsonbody = $webhook | ConvertTo-Json
Invoke-RestMethod -Method Post -Headers $headerParams -Uri "https://manage.office.com/api/v1.0/$tenantGUID/activity/feed/subscriptions/start?contentType=Audit.SharePoint" -Body $jsonbody
this is the output i get
contentType status webhook
Audit.SharePoint enabled
am i missing something?
from o365-investigationtooling.
Related Issues (20)
- DumpDelegatesandForwardingRules doesn't have target of Get-InboxRule in output HOT 2
- Update EnableMailboxAuditing.ps1 HOT 1
- EnableMailboxAuditing.ps1 add SchedulingMailbox type HOT 4
- unapproved verbs & UseDatabaseQuotaDefaults
- inactiveInLastThreeMonthsUsers HOT 1
- WARNING: Proxy creation has been skipped for the following command:
- Script Times Out When Running Against 5000 Users HOT 1
- Set up all scripts to work from docker
- Legacy authentication turned off HOT 3
- Too many result than Azure AD Admin Center showed HOT 2
- DumpDelegatesandForwardingRules.ps1 trouble running on Exchange Online Powershell Module with MFA
- Are these being updated? HOT 3
- EnableMailboxAuditing.ps1 suggest HOT 1
- EnableMailboxAuditing.ps1 missing ? HOT 1
- How can I decrypt the action and condition fields HOT 2
- Broken link in documentation
- pulling a lot of active accounts HOT 3
- "The account does not have permission to impersonate the requested user."
- InactiveUsersLast90Days.ps1 - limit of 5000 audit log items
- InactiveUsersLast90Days.ps1 - UserLoginFailed events
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from o365-investigationtooling.