Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 6d7e6cd

Browse files
authored
Add change log (#397)
* Add change log * Update help content for me command. (#398)
1 parent b43bafd commit 6d7e6cd

File tree

1,126 files changed

+1695
-1686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,126 files changed

+1695
-1686
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
### Changed
1313

14+
## [1.0.0] - 2023-11-20
15+
16+
### Added
17+
18+
- Added `me` command. Use `mgc me get` to fetch the currently logged in user.
19+
20+
### Changed
21+
1422
## [1.0.0-rc.2] - 2023-10-24
1523

1624
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Add -h to your command to view information that contains documentation links wit
238238
## Check logged in user
239239
You can access the your user's details using:
240240
```bash
241-
mgc users get --user-id '[email protected]'
241+
mgc me get
242242
```
243243

244244
This will also display your User ID which is required for many queries involving your user (the "me" concept has been removed from Microsoft Graph CLI).

src/generated/GraphClient.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2103,6 +2103,7 @@ public Command BuildTenantRelationshipsNavCommand() {
21032103
/// </summary>
21042104
public Command BuildUsersNavCommand() {
21052105
var command = new Command("users");
2106+
command.AddAlias("me");
21062107
command.Description = "Provides operations to manage the collection of user entities.";
21072108
var builder = new UsersRequestBuilder(PathParameters);
21082109
var execCommands = new List<Command>();

src/generated/Users/Item/Activities/ActivitiesRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public Command BuildCountNavCommand() {
5656
public Command BuildCreateCommand() {
5757
var command = new Command("create");
5858
command.Description = "Create new navigation property to activities for users";
59-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
59+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
6060
};
6161
userIdOption.IsRequired = true;
6262
command.AddOption(userIdOption);
@@ -106,7 +106,7 @@ public Command BuildCreateCommand() {
106106
public Command BuildListCommand() {
107107
var command = new Command("list");
108108
command.Description = "Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate. This API is available in the following national cloud deployments.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/projectrome-get-activities?view=graph-rest-1.0";
109-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
109+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
110110
};
111111
userIdOption.IsRequired = true;
112112
command.AddOption(userIdOption);

src/generated/Users/Item/Activities/Count/CountRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class CountRequestBuilder : BaseCliRequestBuilder {
2424
public Command BuildGetCommand() {
2525
var command = new Command("get");
2626
command.Description = "Get the number of the resource";
27-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
27+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
2828
};
2929
userIdOption.IsRequired = true;
3030
command.AddOption(userIdOption);

src/generated/Users/Item/Activities/Item/HistoryItems/Count/CountRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public class CountRequestBuilder : BaseCliRequestBuilder {
2424
public Command BuildGetCommand() {
2525
var command = new Command("get");
2626
command.Description = "Get the number of the resource";
27-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
27+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
2828
};
2929
userIdOption.IsRequired = true;
3030
command.AddOption(userIdOption);

src/generated/Users/Item/Activities/Item/HistoryItems/HistoryItemsRequestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public Command BuildCountNavCommand() {
5555
public Command BuildCreateCommand() {
5656
var command = new Command("create");
5757
command.Description = "Create new navigation property to historyItems for users";
58-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
58+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
5959
};
6060
userIdOption.IsRequired = true;
6161
command.AddOption(userIdOption);
@@ -110,7 +110,7 @@ public Command BuildCreateCommand() {
110110
public Command BuildListCommand() {
111111
var command = new Command("list");
112112
command.Description = "Optional. NavigationProperty/Containment; navigation property to the activity's historyItems.";
113-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
113+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
114114
};
115115
userIdOption.IsRequired = true;
116116
command.AddOption(userIdOption);

src/generated/Users/Item/Activities/Item/HistoryItems/Item/Activity/ActivityRequestBuilder.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class ActivityRequestBuilder : BaseCliRequestBuilder {
2525
public Command BuildGetCommand() {
2626
var command = new Command("get");
2727
command.Description = "Optional. NavigationProperty/Containment; navigation property to the associated activity.";
28-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
28+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
2929
};
3030
userIdOption.IsRequired = true;
3131
command.AddOption(userIdOption);

src/generated/Users/Item/Activities/Item/HistoryItems/Item/ActivityHistoryItemItemRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public Command BuildActivityNavCommand() {
4141
public Command BuildDeleteCommand() {
4242
var command = new Command("delete");
4343
command.Description = "Delete navigation property historyItems for users";
44-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
44+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
4545
};
4646
userIdOption.IsRequired = true;
4747
command.AddOption(userIdOption);
@@ -86,7 +86,7 @@ public Command BuildDeleteCommand() {
8686
public Command BuildGetCommand() {
8787
var command = new Command("get");
8888
command.Description = "Optional. NavigationProperty/Containment; navigation property to the activity's historyItems.";
89-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
89+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
9090
};
9191
userIdOption.IsRequired = true;
9292
command.AddOption(userIdOption);
@@ -149,7 +149,7 @@ public Command BuildGetCommand() {
149149
public Command BuildPatchCommand() {
150150
var command = new Command("patch");
151151
command.Description = "Delete an existing history item for an existing user activity. This API is available in the following national cloud deployments.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/projectrome-delete-historyitem?view=graph-rest-1.0";
152-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
152+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
153153
};
154154
userIdOption.IsRequired = true;
155155
command.AddOption(userIdOption);

src/generated/Users/Item/Activities/Item/UserActivityItemRequestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public class UserActivityItemRequestBuilder : BaseCliRequestBuilder {
2727
public Command BuildDeleteCommand() {
2828
var command = new Command("delete");
2929
command.Description = "Delete an existing user activity for your app. This API is available in the following national cloud deployments.\n\nFind more info here:\n https://learn.microsoft.com/graph/api/projectrome-delete-activity?view=graph-rest-1.0";
30-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
30+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
3131
};
3232
userIdOption.IsRequired = true;
3333
command.AddOption(userIdOption);
@@ -66,7 +66,7 @@ public Command BuildDeleteCommand() {
6666
public Command BuildGetCommand() {
6767
var command = new Command("get");
6868
command.Description = "The user's activities across devices. Read-only. Nullable.";
69-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
69+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
7070
};
7171
userIdOption.IsRequired = true;
7272
command.AddOption(userIdOption);
@@ -147,7 +147,7 @@ public Command BuildHistoryItemsNavCommand() {
147147
public Command BuildPatchCommand() {
148148
var command = new Command("patch");
149149
command.Description = "Update the navigation property activities in users";
150-
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user") {
150+
var userIdOption = new Option<string>("--user-id", description: "The unique identifier of user. Use 'me' for the currently signed in user.") {
151151
};
152152
userIdOption.IsRequired = true;
153153
command.AddOption(userIdOption);

0 commit comments

Comments
 (0)