@pnp/cli-microsoft365 11.5.0 → 11.6.0-beta.ab6d130

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,12 +71,6 @@ m365 entra user add [options]
71
71
 
72
72
  ## Remarks
73
73
 
74
- :::info
75
-
76
- To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator.
77
-
78
- :::
79
-
80
74
  :::note
81
75
 
82
76
  After running this command, it may take a minute before the user is effectively created in the tenant.
@@ -87,6 +81,31 @@ This command allows using unknown options. For a comprehensive list of user prop
87
81
 
88
82
  If the specified option is not found, you will receive a `Resource 'xyz' does not exist or one of its queried reference-property objects are not present.` error.
89
83
 
84
+ ## Permissions
85
+
86
+ <Tabs>
87
+ <TabItem value="Delegated">
88
+
89
+ | Resource | Permissions |
90
+ |-----------------|--------------------|
91
+ | Microsoft Graph | User.ReadWrite.All |
92
+
93
+ :::info
94
+
95
+ To use this command you must be a **Global administrator**, **User administrator**, or **Privileged Authentication administrator**.
96
+
97
+ :::
98
+
99
+ </TabItem>
100
+ <TabItem value="Application">
101
+
102
+ | Resource | Permissions |
103
+ |-----------------|--------------------|
104
+ | Microsoft Graph | User.ReadWrite.All |
105
+
106
+ </TabItem>
107
+ </Tabs>
108
+
90
109
  ## Examples
91
110
 
92
111
  Create a user and let him/her update the password at first login.
@@ -35,10 +35,27 @@ m365 entra user get [options]
35
35
 
36
36
  ## Remarks
37
37
 
38
- You can retrieve information about a user, either by specifying that user's id, user name (`userPrincipalName`), or email (`mail`), but not all.
39
-
40
38
  If the user with the specified id, user name, or email doesn't exist, you will get a `Resource 'xyz' does not exist or one of its queried reference-property objects are not present.` error.
41
39
 
40
+ ## Permissions
41
+
42
+ <Tabs>
43
+ <TabItem value="Delegated">
44
+
45
+ | Resource | Permissions |
46
+ |-----------------|---------------|
47
+ | Microsoft Graph | User.Read.All |
48
+
49
+ </TabItem>
50
+ <TabItem value="Application">
51
+
52
+ | Resource | Permissions |
53
+ |-----------------|---------------|
54
+ | Microsoft Graph | User.Read.All |
55
+
56
+ </TabItem>
57
+ </Tabs>
58
+
42
59
  ## Examples
43
60
 
44
61
  Get information about the user by id.
@@ -33,6 +33,10 @@ If the user with the specified user name doesn't involved in any breach, you wil
33
33
 
34
34
  If `API Key` is invalid, you will get a `Required option apiKey not specified` error.
35
35
 
36
+ ## Permissions
37
+
38
+ This command does not require any Microsoft 365 permissions.
39
+
36
40
  ## Examples
37
41
 
38
42
  Check if user with by a user name is in a data breach.
@@ -34,6 +34,25 @@ To filter the list of users, include additional options that match the user prop
34
34
 
35
35
  Certain properties cannot be returned within a user collection. The following properties are only supported when retrieving an single user using: `aboutMe`, `birthday`, `hireDate`, `interests`, `mySite`, `pastProjects`, `preferredName`, `responsibilities`, `schools`, `skills`, `mailboxSettings`.
36
36
 
37
+ ## Permissions
38
+
39
+ <Tabs>
40
+ <TabItem value="Delegated">
41
+
42
+ | Resource | Permissions |
43
+ |-----------------|---------------|
44
+ | Microsoft Graph | User.Read.All |
45
+
46
+ </TabItem>
47
+ <TabItem value="Application">
48
+
49
+ | Resource | Permissions |
50
+ |-----------------|---------------|
51
+ | Microsoft Graph | User.Read.All |
52
+
53
+ </TabItem>
54
+ </Tabs>
55
+
37
56
  ## Examples
38
57
 
39
58
  List all users in the tenant.
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # entra user remove
4
6
 
@@ -33,17 +35,36 @@ If the user with the specified id or user name doesn't exist, you will get a `Re
33
35
 
34
36
  :::
35
37
 
36
- :::info
38
+ :::note
37
39
 
38
- To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator.
40
+ After running this command, it may take a minute before the user is effectively moved to the recycle bin.
39
41
 
40
42
  :::
41
43
 
42
- :::note
44
+ ## Permissions
43
45
 
44
- After running this command, it may take a minute before the user is effectively moved to the recycle bin.
46
+ <Tabs>
47
+ <TabItem value="Delegated">
45
48
 
46
- :::
49
+ | Resource | Permissions |
50
+ |-----------------|--------------------|
51
+ | Microsoft Graph | User.ReadWrite.All |
52
+
53
+ :::info
54
+
55
+ To use this command you must be a **Global administrator**, **User administrator**, or **Privileged Authentication administrator**.
56
+
57
+ :::
58
+
59
+ </TabItem>
60
+ <TabItem value="Application">
61
+
62
+ | Resource | Permissions |
63
+ |-----------------|--------------------|
64
+ | Microsoft Graph | User.ReadWrite.All |
65
+
66
+ </TabItem>
67
+ </Tabs>
47
68
 
48
69
  ## Examples
49
70
 
@@ -1,4 +1,6 @@
1
1
  import Global from '/docs/cmd/_global.mdx';
2
+ import Tabs from '@theme/Tabs';
3
+ import TabItem from '@theme/TabItem';
2
4
 
3
5
  # entra user set
4
6
 
@@ -82,6 +84,31 @@ This command allows using unknown options. For a comprehensive list of user prop
82
84
 
83
85
  If the user with the specified ID or username doesn't exist, or if the specified option is not found, you will receive a `Resource 'xyz' does not exist or one of its queried reference-property objects are not present.` error.
84
86
 
87
+ ## Permissions
88
+
89
+ <Tabs>
90
+ <TabItem value="Delegated">
91
+
92
+ | Resource | Permissions |
93
+ |-----------------|--------------------|
94
+ | Microsoft Graph | User.ReadWrite.All |
95
+
96
+ :::info
97
+
98
+ To use this command you must be a **Global administrator**, **User administrator**, or **Privileged Authentication administrator**.
99
+
100
+ :::
101
+
102
+ </TabItem>
103
+ <TabItem value="Application">
104
+
105
+ | Resource | Permissions |
106
+ |-----------------|--------------------|
107
+ | Microsoft Graph | User.ReadWrite.All |
108
+
109
+ </TabItem>
110
+ </Tabs>
111
+
85
112
  ## Examples
86
113
 
87
114
  Update specific property _department_ of user with id _1caf7dcd-7e83-4c3a-94f7-932a1299c844_
@@ -69,7 +69,7 @@ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourc
69
69
  Copy file by sourceId (UniqueId) to a document library in another site collection and rename the file (without specifying the file extension).
70
70
 
71
71
  ```sh
72
- m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report"
72
+ m365 spo file copy --webUrl https://contoso.sharepoint.com/sites/project --sourceId "b2307a39-e878-458b-bc90-03bc578531d6" --targetUrl "/sites/IT/Shared Documents" --newName "Report.pdf"
73
73
  ```
74
74
 
75
75
  Copy file by sourceId (UniqueId) to a document library in another site collection with a new name, rename the file if it already exists.