Skip to content

Microsoft.Graph.Reports - Get-MgReportTeamUserActivityCount #407

Closed

Description

@JohanssonMarkus

Get-MgReportTeamUserActivityCount -Period "D7" Give an error

PS H:> Get-MgReportTeamUserActivityCount -Period "D7"
Get-MgReportTeamUserActivityCount : Expected '{' or '['. Was String: Report.
At line:1 char:1

  • Get-MgReportTeamUserActivityCount -Period "D7"
  •   + CategoryInfo          : NotSpecified: (:) [Get-MgReportTeamUserActivityCount_Get1], ParserException
      + FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Cmdlets.GetMgReportTeamUserActivityCount_Get1 
    

AB#7395

Activity

  1. ghost removed on Oct 1, 2020
  2. MIchaelMainer commented on Oct 1, 2020

    @MIchaelMainer
    Contributor

    This is a known issue where the metadata describes this as JSON and the response is csv.

  3. JohanssonMarkus commented on Oct 2, 2020

    @JohanssonMarkus
    Author

    Michael Mainer (@MIchaelMainer) Ok good to know, when will it be solved?

  4. MIchaelMainer commented on Oct 2, 2020

    @MIchaelMainer
    Contributor

    We don't have this scheduled yet on our side, and I'm unaware what the story is on the server side for this API set. This scenario requires the use of Invoke-GraphRequest for now.

  5. joshtransient commented on Oct 6, 2020

    @joshtransient

    Also adding that the cmdlets in Microsoft.Graph.Reports fail when the file specified by -OutFile doesn't already exist.

  6. added this to the Post GA milestone on Nov 11, 2020
  7. darrelmiller commented on Nov 26, 2020

    @darrelmiller
    Contributor

    I was able to repro this issue:

    C:\src\msgraph-sdk-powershell [dev ≡ +4 ~2 -0 !]> Get-MgReportTeamDeviceUsageUserCount -Period "D7" -OutFile report.txt
    Get-MgReportTeamDeviceUsageUserCount_Get: Cannot find path 'C:\src\msgraph-sdk-powershell\report.txt' because it does not exist.
    
  8. 16 remaining items

  9. added this to the 1.7.0 milestone on Jun 8, 2021
  10. peombwa commented on Jul 13, 2021

    @peombwa
    Member

    This is being tracked here https://github.com/microsoftgraph/microsoft-graph-devx-api/issues/552 and will be fixed via XSLT transform.

  11. weyCC81 commented on Oct 4, 2021

    @weyCC81

    This is still happening with Module "Microsoft.Graph" at Version "1.7.0", please fix

  12. silijon commented on Feb 10, 2022

    @silijon

    From what we can tell, the Microsoft.Graph.Reports module is comprehensively broken because of this issue. It's been outstanding for a while. If it can't be fixed on the metadata side, is there any thought to having additional api metadata transforms applied prior to the sdk generation? That would at least insulate the sdk from inheriting upstream problems that can't be fixed for years at a time....

  13. maisarissi commented on Apr 20, 2022

    @maisarissi

    Hi John Dennis (@silijon) . We have been working with other teams to get this fixed.
    As you can see here the team managed to fix and now we are just waiting for the next version release to be out so we can validate on our side.
    Once we get this done, we will update and close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions