microsoftgraph / microsoftgraph/msgraph-metadata
Microsoft.Graph.Reports - Get-MgReportOffice365ActiveUserCount
@irvinesunday is already working on this.
Since Nov 22, 2022.
- Dominant language
- XSLT
- Stars
- 166
- Forks
- 55
- Avg merge
- 16h 12m
- Merged PRs (30d)
- 14
Description
Output to Commandline,Pipline not possible with the following Cmdlet:
Select-MgProfile -Name "beta"
Get-MgReportOffice365ActiveUserCount -Period D30 -Debug
Error:
Get-MgReportOffice365ActiveUserCount : Expected '{' or '['. Was String: Report.
Environment:
Module "Microsoft.Graph"
Version "1.11.0 "
Debug:
DEBUG: [CmdletBeginProcessing]: - Get-MgReportOffice365ActiveUserCount begin processing with parameterSet 'Get1'.
DEBUG: [Authentication]: - AuthType: 'Delegated', AuthProviderType: 'InteractiveAuthenticationProvider', ContextScope: 'CurrentUser', AppName: 'Microsoft Graph PowerShell'.
DEBUG: [Authentication]: - Scopes: [AuditLog.Read.All, Directory.Read.All, openid, profile, Reports.Read.All, SecurityEvents.Read.All, email].
DEBUG: ============================ HTTP REQUEST ============================
HTTP Method:
GET
Absolute Uri:
https://graph.microsoft.com/beta/reports/microsoft.graph.getOffice365ActiveUserCounts(period='D30')
Headers:
Body:
DEBUG: ============================ HTTP RESPONSE ============================Status Code:
OKHeaders:
Pragma : no-cache
Transfer-Encoding : chunked
X-XSS-Protection : 1; mode=block
X-Content-Type-Options : nosniff
Strict-Transport-Security : max-age=31536000; includeSubDomains
X-Frame-Options : Deny
Content-Security-Policy : frame-options
requestId : [requestid]
Cache-Control : no-store, no-cache, max-age=0, s-maxage=0, private
Date : Tue, 15 Nov 2022 12:42:22 GMT
Server : Microsoft-IIS/10.0
X-Powered-By : ASP.NETBody:
Report Refresh Date,Office 365,Exchange,OneDrive,SharePoint,Skype For Business,Yammer,Teams,Report Date,Report Period
2022-11-14,,,,,,,,2022-10-16,30
2022-11-14,,,,,,,,2022-10-17,30
2022-11-14,,,,,,,,2022-10-18,30
2022-11-14,,,,,,,,2022-10-19,30
2022-11-14,,,,,,,,2022-10-20,30
2022-11-14,,,,,,,,2022-10-21,30
2022-11-14,,,,,,,,2022-10-22,30
2022-11-14,,,,,,,,2022-10-23,30
2022-11-14,,,,,,,,2022-10-24,30
2022-11-14,,,,,,,,2022-10-25,30
2022-11-14,,,,,,,,2022-10-26,30
2022-11-14,,,,,,,,2022-10-27,30
2022-11-14,,,,,,,,2022-10-28,30
2022-11-14,,,,,,,,2022-10-29,30
2022-11-14,,,,,,,,2022-10-30,30
2022-11-14,,,,,,,,2022-10-31,30
2022-11-14,,,,,,,,2022-11-01,30
2022-11-14,,,,,,,,2022-11-02,30
2022-11-14,1,,,1,,,1,2022-11-03,30
2022-11-14,,,,,,,,2022-11-04,30
2022-11-14,,,,,,,,2022-11-05,30
2022-11-14,,,,,,,,2022-11-06,30
2022-11-14,1,,,1,,,,2022-11-07,30
2022-11-14,,,,,,,,2022-11-08,30
2022-11-14,,,,,,,,2022-11-09,30
2022-11-14,1,,,1,,,,2022-11-10,30
2022-11-14,,,,,,,,2022-11-11,30
2022-11-14,,,,,,,,2022-11-12,30
2022-11-14,,,,,,,,2022-11-13,30
2022-11-14,,,,,,,,2022-11-14,30DEBUG: [CmdletException]: Received exception with message 'ParserException - Expected '{' or '['. Was String: Report. : at Microsoft.Graph.PowerShell.Runtime.Json.JsonParser.ReadNode()
at Microsoft.Graph.PowerShell.Runtime.Json.JsonNode.Parse(SourceReader sourceReader)
at Microsoft.Graph.PowerShell.Reports.<>c.<ReportsGetOffice365ActiveUserCounts1_Call>b__421_0(Task1 body) at System.Threading.Tasks.ContinuationResultTaskFromResultTask2.InnerInvoke()
at System.Threading.Tasks.Task.Execute()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.PowerShell.Cmdlets.GetMgReportOffice365ActiveUserCount_Get1.d__53.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.PowerShell.Reports.<ReportsGetOffice365ActiveUserCounts1_Call>d__421.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.Graph.PowerShell.Reports.<ReportsGetOffice365ActiveUserCounts1_Call>d__421.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.PowerShell.Reports.d__419.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.Graph.PowerShell.Cmdlets.GetMgReportOffice365ActiveUserCount_Get1.d__50.MoveNext()'
Get-MgReportOffice365ActiveUserCount : Expected '{' or '['. Was String: Report.
At line:1 char:1
- Get-MgReportOffice365ActiveUserCount -Period D30 -Debug #v1-0: -OutF ...
+ CategoryInfo : NotSpecified: (:) [Get-MgReportOff...eUserCount_Get1], ParserException + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgReportOffice365ActiveUserCount_Get1DEBUG: [CmdletEndProcessing]: - Get-MgReportOffice365ActiveUserCount end processing.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.