Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 13 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
10 changes: 9 additions & 1 deletion samples/3-UsersAndGroups.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down