Skip to content

Bug report: script sample for teams active users fails #6308

@appieschot

Description

@appieschot

Priority

(Medium) I'm annoyed but I'll live

Description

The script sample executes all steps but fails on sending a correct card. It sends an empty card and throws an error in the script.

Error: true is not a valid GUID
Run 'm365 entra user get -h' for help.
Error: true is not a valid GUID
Run 'm365 entra user get -h' for help.

And then an empty card being send

Steps to reproduce

Copy paste script from: https://pnp.github.io/cli-microsoft365/sample-scripts/teams/recognize-most-active-users-specific-team/ and run with parameters results in an error:

Expected results

A working card containing user score

Actual results

An empty card and errors in the terminal

Diagnostics

N/a

CLI for Microsoft 365 version

tested on v8, v9 and current beta

nodejs version

v18.19.0

Operating system (environment)

Windows

Shell

PowerShell

cli doctor

No response

Additional Info

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions