Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command: m365 teams meeting attendancereport get #3909

Open
appieschot opened this issue Oct 25, 2022 · 10 comments · May be fixed by #5972
Open

New command: m365 teams meeting attendancereport get #3909

appieschot opened this issue Oct 25, 2022 · 10 comments · May be fixed by #5972

Comments

@appieschot
Copy link
Member

appieschot commented Oct 25, 2022

Usage

m365 teams meeting attendancereport get

Description

Download an attendance report for a meeting

Options

Option Description
-u, --userId [userId] The id of the user, omit to list attendance reports for current signed in user. Use either id, userName or email, not all.
-n, --userName [userName] The name of the user, omit to list attendance reports for current signed in user. Use either id, userName or email, not all.
--email [email] The email of the user that, omit to list attendance reports for current signed in user. Use either id, userName or email, not all.
-i, --id <id> The Id of the report
-f, --outputFile [outputFile] Path to the file where the report should be stored in

Examples

Gets the specified attendance report made for the current signed in user and Microsoft Teams meeting with given id

m365 teams meeting attendancereport get --meetingId MSo1N2Y5ZGFjYy03MWJmLTQ3NDMtYjQxMy01M2EdFGkdRWHJlQ --reportId MSMjMCMjNzU3ODc2ZDYtOTcwMi00MDhkLWFkNDItOTE2ZDNmZjkwZGY4

Gets the specified attendance report made for the garthf@contoso.com and Microsoft Teams meeting with given id

m365 teams meeting attendancereport get --userName garthf@contoso.com --meetingId MSo1N2Y5ZGFjYy03MWJmLTQ3NDMtYjQxMy01M2EdFGkdRWHJlQ --reportId MSMjMCMjNzU3ODc2ZDYtOTcwMi00MDhkLWFkNDItOTE2ZDNmZjkwZGY4

Additional Info

https://learn.microsoft.com/en-us/graph/api/meetingattendancereport-get?view=graph-rest-beta&tabs=http

We will need a check to make sure userName is required when they are signed in with app permissions.
⚠️ Make sure to handle error for meetings hosted in a channel as channel meetings are not supported
⚠️ Uses additional permissions, make sure to list them in PR OnlineMeetingArtifact.Read.All
⚠️ Add remark that the beta endpoint is subject to change

See m365 spo file get for saving of local files.

@appieschot appieschot added the needs peer review Needs second pair of eyes to review the spec or PR label Oct 25, 2022
@Jwaegebaert
Copy link
Contributor

Not quite sure, but I think we can also change the option --reportId to -i, --id <id>. Report stands for attendance report which is the sole functionality of this command to return such a report. 😄

@appieschot appieschot changed the title New command: m365 teams meeting attendance get New command: m365 teams meeting attendancereport get Oct 28, 2022
@appieschot appieschot added help wanted good first issue hacktoberfest Issue perfect for hacktoberfest and removed needs peer review Needs second pair of eyes to review the spec or PR labels Oct 28, 2022
@Jwaegebaert Jwaegebaert removed the hacktoberfest Issue perfect for hacktoberfest label Nov 2, 2022
@nanddeepn
Copy link
Contributor

Hi @appieschot, @Jwaegebaert

Are we missing path option here?

-p, --path [path]
: The local path where to save the retrieved file. Must be specified when the --asFile option is used

@arjunumenon
Copy link
Member

Very good point @nanddeepn 👍. Thanks for pointing it out. We would need to have the --path or --outputFile in place if we are selecting --asFile.

Just a quick confirmation on that front though.
@appieschot / @Jwaegebaert - When I checked the endpoint, my understanding is that, it returns as object and that being the case when you select --asFile, the users will have the option to export the file as a JSON file, something similar to this command. Is that correct?

If yes, rather than making the option as --asFile, we will keep it as --outputFile ensuring the consistent naming. Do I make sense?

@appieschot
Copy link
Member Author

@nanddeepn so sorry! Based on the discussion in #3908 I removed the wrong parameter. Updated our specs and removed the --asFile and only kept path parameter.

@appieschot
Copy link
Member Author

@arjunumenon I went for path as we use that here: https://pnp.github.io/cli-microsoft365/cmd/spo/file/file-get/ 🤔

@arjunumenon
Copy link
Member

Totally understand that Appie.

My thought is, unlike spo file get where we actually have actual file to download and here we are basically getting the data as an object and generating the file for them, similar to what we have in spo report siteusagepages. That's why I thought we can follow the convention we have for the command spo report siteusagepages.

@appieschot
Copy link
Member Author

That does indeed make sense as well. Just checked all other reports and we do have the outputfile on each of them. Will upgrade both specs. Thanks for keeping us consistent 🚀

@Adam-it Adam-it added the hacktoberfest Issue perfect for hacktoberfest label Sep 25, 2023
@milanholemans milanholemans removed the hacktoberfest Issue perfect for hacktoberfest label Nov 6, 2023
@MathijsVerbeeck
Copy link
Contributor

Can I work on this?

@Adam-it
Copy link
Contributor

Adam-it commented Apr 6, 2024

Can I work on this?

Sold 🔨

@MathijsVerbeeck
Copy link
Contributor

@appieschot I know that it's quite late, but why do you feel like saving this to an outputfile would make sense? I get that it would make sense to do this for the transcript get, because then you can get the VTT files, but not for this as this doesn't have a content call, but just returns a json object when being called.

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

Successfully merging a pull request may close this issue.

7 participants