diff --git a/CHANGELOG.md b/CHANGELOG.md index 67addd0f763..d4872ced650 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,12 +6,23 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] + +### Added + +### Changed + +## [0.1.0-preview.5] - 2022-06-10 ### Added - Add item sub-command for indexer paths (paths with id). `GET /users/{user-id}` changes from `mgc users get --user-id` to `mgc users item get --user-id` +- Add command samples. +- Add automatic page iteration via the `--all` command option. ### Changed -- Login command scopes are now optional -- Fix issue with nullable boolean options +- Login command scopes are now optional. +- Fix issue with nullable boolean options. +- Fix issue with incorrect OData parameter names. +- Fix issue with docker container missing capabilities when running as a non-root user. +- API requests now send an `Accept` header to the server. The value of the header is determined by the schema. ## [0.1.0-preview.4] - 2022-04-19 diff --git a/samples/3-UsersAndGroups.md b/samples/3-UsersAndGroups.md index 67a81e7741d..930147c0993 100644 --- a/samples/3-UsersAndGroups.md +++ b/samples/3-UsersAndGroups.md @@ -1,11 +1,19 @@ ## Microsoft Graph Users and Groups Snippets -### List of Users +### List of users (paged) + +Get first page of users. If the `--top` command option is not provided, the page size is determined by the server. ```sh mgc users list --select "id, displayName, OfficeLocation, BusinessPhones" ``` +### List of all users + +```sh +mgc users list --select "id, displayName, OfficeLocation, BusinessPhones" --all +``` + ### List users with count ```sh