msgraph-beta-sdk-go
msgraph-beta-sdk-go copied to clipboard
`AuditLogQuery.SetUserPrincipalNameFilters()` weird behavior
Describe the bug
I have some audit log records whose userprincipalname=SHAREPONT/system.
However, when I use SetUserPrincipalNameFilters() to set a “SHAREPONT//system” (double backslash to escape) filter, the query then returns no record.
And I’ve checked the filter is indeed “SHAREPONT/system” using getAuditLogQueryById endpoint and GetUserPrincipalNameFilters().
Then when I set UPN filter to be "system", the query returns those records whose UPN=“SHAREPONT/system”
Is this normal?
Expected behavior
use SetUserPrincipalNameFilters() to set a “SHAREPONT/system” filter, the query should return the records.
How to reproduce
Has described in previous section.
SDK Version
0.107.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```</details>
### Configuration
_No response_
### Other information
_No response_