I am trying to use Get-MgReportEmailActivityUserDetail to get information only about a certain user, using the UserId parameter in the inputObject, but I am recieving the following error.
Get-MgReportEmailActivityUserDetail:
Line |
7 | Get-MgReportEmailActivityUserDetail @inputObject -OutFile 'temp.csv'
| ~~~~~~~~~~~~
| A parameter cannot be found that matches parameter name 'UserId'.
The input object looks like this:
$inputObject = @{
Period = "D90"
UserId = "name@email.com"
}
I have tried several other parameters as well, but they also produce the same error.
Expected behavior
UserId is defined as one of the parameters that can be passed to the function in the documentation, so the expected behaviour is that I am allowed to pass it to the function and that it returns a result.
How to reproduce
Connect to Microsoft Graph with at least "Reports.Read.All" privileges.
Create an input object as described above
Run the Get-MgReportEmailActivityUserDetail command with the inputObject and an OutFile.
Describe the bug
I am trying to use Get-MgReportEmailActivityUserDetail to get information only about a certain user, using the UserId parameter in the inputObject, but I am recieving the following error.
The input object looks like this:
I have tried several other parameters as well, but they also produce the same error.
Expected behavior
UserId is defined as one of the parameters that can be passed to the function in the documentation, so the expected behaviour is that I am allowed to pass it to the function and that it returns a result.
How to reproduce
SDK Version
2.22.0
Latest version known to work for scenario above?
No response
Known Workarounds
No response
Debug output
Click to expand log
```Configuration
Other information
No response