Giter Site home page Giter Site logo

unable to get data from content get an error No subscription found for the specified content type about o365-investigationtooling HOT 7 CLOSED

officedev avatar officedev commented on September 26, 2024
unable to get data from content get an error No subscription found for the specified content type

from o365-investigationtooling.

Comments (7)

bkoeller avatar bkoeller commented on September 26, 2024

Hey RiddhiKarani,
Couple of quick questions to help troubleshoot:

  1. Did you populate the config file with the tenantid, appid, and app secret? Can you tell if the script is pulling the config values?
  2. Did you grant your app in AD the correct claims to access the management activity api?
  3. 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.

RiddhiKarani avatar RiddhiKarani commented on September 26, 2024

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.

bkoeller avatar bkoeller commented on September 26, 2024

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.

RiddhiKarani avatar RiddhiKarani commented on September 26, 2024

great, one more query have you tried adding the webhook and subscribing as a listener to the API?

from o365-investigationtooling.

bkoeller avatar bkoeller commented on September 26, 2024

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.

RiddhiKarani avatar RiddhiKarani commented on September 26, 2024

do you have any sample for the code solution with webhook for management api?

from o365-investigationtooling.

RiddhiKarani avatar RiddhiKarani commented on September 26, 2024

i updated the powershell script to include webhook but the response output i get shows null for webhook.

$headerParams = @{'Authorization'="$($oauth.token_type) $($oauth.access_token)"}

$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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.