-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SignIns Unknown AppliedConditionalAccessPolicyResult #617
Comments
Hi @L4r1k |
Sure, the main endpoint I'm hitting is import (
...
graph "github.com/microsoftgraph/msgraph-sdk-go"
daudit "github.com/microsoftgraph/msgraph-sdk-go/auditlogs"
)
...
headers := abstractions.NewRequestHeaders()
var filter string = fmt.Sprintf("createdDateTime ge %s and createdDateTime lt %s", startTime, endTime)
var pageSize int32 = 1000
requestParameters := &daudit.SignInsRequestBuilderGetQueryParameters{
Filter: &filter,
Top: &pageSize,
}
configuration := &daudit.SignInsRequestBuilderGetRequestConfiguration{
Headers: headers,
QueryParameters: requestParameters,
}
var req *daudit.SignInsRequestBuilder
req = client.AuditLogs().SignIns()
result, err := req.Get(context.Background(), configuration) // <- error occurs here where As noted here, if I switch to using the beta version of msgraph-sdk, I get a different error at the same line for what I'm assuming is a similar metadata related issue. If i print out the exact request being made and hit it from curl/ms graph explorer/etc. it returns data just fine. I have looked through the package inspecting how Go parses the metadata/signin model and, as you noted, the two don't seem to line up hence my assumption that metadata is the issue. I also can't easily extract the returned data anyway as this package drops the returned data if any error occurs ( |
Thanks for the additional information. this is the endpoint we're referring to here. @rkodev when you have a couple of minutes, can you open an ICM on that team so they add the missing enum values or stop returning them in v1 please? |
Hi, has there been any movement on this? It's a big blocker for my application 😢 |
Thanks for the nudge here. And for your patience. I created the ICM myself and I'll let you know about the reply from the service team. |
Update from the ICM: the service team has made the metadata changes to include the missing enums values, they have been merged. The change is under deployment. However, those changes are only deployed weekly and we have a number of deployment freezes due to the end of the year celebrations. If that change doesn't make it in the next 2 weeks, it's likely it'll only get deployed in January. |
Cheers Vincent! Thanks for your help. 🤞 it gets deployed inside 2 weeks in that case |
update from the service team: deployment complete. Which means our generation pipeline should pick it up next tuesday. |
Hitting the SignIns list MS Graph API endpoint results in either of the following issues:
Unknown AppliedConditionalAccessPolicyResult value: reportOnlyFailure
Unknown AppliedConditionalAccessPolicyResult value: reportOnlyNotApplied
I believe this may be related to how the metadata is presenting the
AppliedConditionalAccessPolicyResult
, i.e. it differs from what is actually returned by the API and therefore go doesn't parse it correctly. Possibly similar to what's occurring the beta msgraph-sdk-go microsoftgraph/msgraph-beta-sdk-go#224 ?The text was updated successfully, but these errors were encountered: