@pnp/cli-microsoft365 6.3.0-beta.e0fa4e0 → 6.3.0-beta.e40d7b4
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.
- package/dist/m365/aad/commands/user/user-add.js +223 -0
- package/dist/m365/aad/commands/user/user-license-list.js +99 -0
- package/dist/m365/aad/commands/user/user-recyclebinitem-list.js +41 -0
- package/dist/m365/aad/commands/user/user-remove.js +107 -0
- package/dist/m365/aad/commands.js +4 -0
- package/dist/m365/flow/commands/environment/FlowEnvironmentDetails.js +3 -0
- package/dist/m365/flow/commands/environment/environment-get.js +26 -11
- package/docs/docs/cmd/aad/user/user-add.md +168 -0
- package/docs/docs/cmd/aad/user/user-license-list.md +98 -0
- package/docs/docs/cmd/aad/user/user-recyclebinitem-clear.md +1 -1
- package/docs/docs/cmd/aad/user/user-recyclebinitem-list.md +82 -0
- package/docs/docs/cmd/aad/user/user-recyclebinitem-remove.md +1 -1
- package/docs/docs/cmd/aad/user/user-remove.md +51 -0
- package/docs/docs/cmd/aad/user/user-set.md +1 -1
- package/docs/docs/cmd/flow/environment/environment-get.md +31 -3
- package/docs/docs/cmd/spo/homesite/homesite-get.md +20 -1
- package/docs/docs/cmd/spo/homesite/homesite-remove.md +8 -2
- package/docs/docs/cmd/spo/homesite/homesite-set.md +8 -2
- package/docs/docs/cmd/spo/hubsite/hubsite-connect.md +9 -9
- package/docs/docs/cmd/spo/hubsite/hubsite-data-get.md +34 -5
- package/docs/docs/cmd/spo/hubsite/hubsite-disconnect.md +6 -6
- package/docs/docs/cmd/spo/hubsite/hubsite-get.md +36 -19
- package/docs/docs/cmd/spo/hubsite/hubsite-list.md +59 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-register.md +30 -1
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-grant.md +6 -6
- package/docs/docs/cmd/spo/hubsite/hubsite-rights-revoke.md +4 -4
- package/docs/docs/cmd/spo/hubsite/hubsite-set.md +40 -15
- package/docs/docs/cmd/spo/hubsite/hubsite-unregister.md +4 -4
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-get.md +7 -1
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-remove.md +9 -3
- package/docs/docs/cmd/spo/knowledgehub/knowledgehub-set.md +8 -2
- package/docs/docs/cmd/spo/list/list-add.md +123 -57
- package/docs/docs/cmd/spo/list/list-contenttype-add.md +49 -4
- package/docs/docs/cmd/spo/list/list-contenttype-default-set.md +3 -3
- package/docs/docs/cmd/spo/list/list-contenttype-list.md +48 -3
- package/docs/docs/cmd/spo/list/list-contenttype-remove.md +5 -5
- package/docs/docs/cmd/spo/list/list-get.md +70 -4
- package/docs/docs/cmd/spo/list/list-list.md +70 -2
- package/docs/docs/cmd/spo/list/list-remove.md +6 -6
- package/docs/docs/cmd/spo/list/list-retentionlabel-ensure.md +2 -2
- package/docs/docs/cmd/spo/list/list-retentionlabel-get.md +36 -3
- package/docs/docs/cmd/spo/list/list-retentionlabel-remove.md +3 -3
- package/docs/docs/cmd/spo/list/list-roleassignment-add.md +6 -6
- package/docs/docs/cmd/spo/list/list-roleassignment-remove.md +3 -3
- package/docs/docs/cmd/spo/list/list-roleinheritance-break.md +9 -9
- package/docs/docs/cmd/spo/list/list-roleinheritance-reset.md +7 -7
- package/docs/docs/cmd/spo/list/list-set.md +61 -61
- package/docs/docs/cmd/spo/list/list-sitescript-get.md +35 -3
- package/docs/docs/cmd/spo/list/list-view-add.md +66 -5
- package/docs/docs/cmd/spo/list/list-view-field-add.md +10 -10
- package/docs/docs/cmd/spo/list/list-view-get.md +61 -0
- package/docs/docs/cmd/spo/list/list-view-list.md +61 -0
- package/docs/docs/cmd/spo/list/list-view-set.md +1 -1
- package/docs/docs/cmd/spo/list/list-webhook-add.md +19 -0
- package/docs/docs/cmd/spo/list/list-webhook-get.md +19 -0
- package/docs/docs/cmd/spo/list/list-webhook-list.md +19 -0
- package/docs/docs/cmd/spo/listitem/listitem-add.md +29 -0
- package/docs/docs/cmd/spo/listitem/listitem-attachment-list.md +17 -2
- package/docs/docs/cmd/spo/listitem/listitem-get.md +57 -0
- package/docs/docs/cmd/spo/listitem/listitem-isrecord.md +6 -0
- package/docs/docs/cmd/spo/listitem/listitem-list.md +28 -0
- package/docs/docs/cmd/spo/listitem/listitem-record-declare.md +15 -0
- package/docs/docs/cmd/spo/listitem/listitem-set.md +30 -0
- package/docs/docs/cmd/spo/navigation/navigation-node-add.md +22 -0
- package/package.json +1 -1
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# aad user add
|
|
2
|
+
|
|
3
|
+
Creates a new user
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 aad user add [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--displayName <displayName>`
|
|
14
|
+
: The name to display in the address book for the user.
|
|
15
|
+
|
|
16
|
+
`--userName <userName>`
|
|
17
|
+
: The user principal name (someuser@contoso.com).
|
|
18
|
+
|
|
19
|
+
`--accountEnabled [accountEnabled]`
|
|
20
|
+
: Whether the account is enabled. Possible values: `true`, `false`. Default value is `true`.
|
|
21
|
+
|
|
22
|
+
`--mailNickname [mailNickname]`
|
|
23
|
+
: The mail alias for the user. By default this value will be extracted from `userName`.
|
|
24
|
+
|
|
25
|
+
`--password [password]`
|
|
26
|
+
: The password for the user. When not specified, a password will be generated.
|
|
27
|
+
|
|
28
|
+
`--firstName [firstName]`
|
|
29
|
+
: The given name (first name) of the user. Maximum length is 64 characters.
|
|
30
|
+
|
|
31
|
+
`--lastName [lastName]`
|
|
32
|
+
: The user's surname (family name or last name). Maximum length is 64 characters.
|
|
33
|
+
|
|
34
|
+
`--forceChangePasswordNextSignIn`
|
|
35
|
+
: Whether the user should change his/her password on the next login.
|
|
36
|
+
|
|
37
|
+
`--forceChangePasswordNextSignInWithMfa`
|
|
38
|
+
: Whether the user should change his/her password on the next login and setup MFA.
|
|
39
|
+
|
|
40
|
+
`--usageLocation [usageLocation]`
|
|
41
|
+
: A two letter [country code](https://learn.microsoft.com/en-us/partner-center/commercial-marketplace-co-sell-location-codes#country-and-region-codes) (ISO standard 3166). Required for users that will be assigned licenses.
|
|
42
|
+
|
|
43
|
+
`--officeLocation [officeLocation]`
|
|
44
|
+
: The office location in the user's place of business.
|
|
45
|
+
|
|
46
|
+
`--jobTitle [jobTitle]`
|
|
47
|
+
: The user's job title. Maximum length is 128 characters.
|
|
48
|
+
|
|
49
|
+
`--companyName [companyName]`
|
|
50
|
+
: The company name which the user is associated. The maximum length is 64 characters.
|
|
51
|
+
|
|
52
|
+
`--department [department]`
|
|
53
|
+
: The name for the department in which the user works. Maximum length is 64 characters.
|
|
54
|
+
|
|
55
|
+
`--preferredLanguage [preferredLanguage]`
|
|
56
|
+
: The preferred language for the user. Should follow [ISO 639-1 Code](https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oe376/6c085406-a698-4e12-9d4d-c3b0ee3dbc4a). Example: `en-US`.
|
|
57
|
+
|
|
58
|
+
`--managerUserId [managerUserId]`
|
|
59
|
+
: User ID of the user's manager. Specify `managerUserId` or `managerUserName` but not both.
|
|
60
|
+
|
|
61
|
+
`--managerUserName [managerUserName]`
|
|
62
|
+
: User principal name of the manager. Specify `managerUserId` or `managerUserName` but not both.
|
|
63
|
+
|
|
64
|
+
--8<-- "docs/cmd/_global.md"
|
|
65
|
+
|
|
66
|
+
## Remarks
|
|
67
|
+
|
|
68
|
+
!!! important
|
|
69
|
+
To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator
|
|
70
|
+
|
|
71
|
+
!!! note
|
|
72
|
+
After running this command, it may take a minute before the user is effectively created in the tenant.
|
|
73
|
+
|
|
74
|
+
## Examples
|
|
75
|
+
|
|
76
|
+
Create a user and let him/her update the password at first login
|
|
77
|
+
|
|
78
|
+
```sh
|
|
79
|
+
m365 aad user add --displayName "John Doe" --userName "john.doe@contoso.com" --password "SomePassw0rd" --forceChangePasswordNextSignIn
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
Create a user with job information
|
|
83
|
+
|
|
84
|
+
```sh
|
|
85
|
+
m365 aad user add --displayName "John Doe" --userName "john.doe@contoso.com" --password "SomePassw0rd" --firstName John --lastName Doe --jobTitle "Sales Manager" --companyName Contoso --department Sales --officeLocation Vosselaar --forceChangePasswordNextSignIn
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Create a user with language information
|
|
89
|
+
|
|
90
|
+
```sh
|
|
91
|
+
m365 aad user add --displayName "John Doe" --userName "john.doe@contoso.com" --preferredLanguage "nl-BE" --usageLocation BE --forceChangePasswordNextSignIn
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
Create a user with a manager
|
|
95
|
+
|
|
96
|
+
```sh
|
|
97
|
+
m365 aad user add --displayName "John Doe" --userName "john.doe@contoso.com" --managerUserName "adele@contoso.com"
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
## Response
|
|
101
|
+
|
|
102
|
+
=== "JSON"
|
|
103
|
+
|
|
104
|
+
```json
|
|
105
|
+
{
|
|
106
|
+
"id": "990e2425-f595-43bc-85ed-b89a44093793",
|
|
107
|
+
"businessPhones": [],
|
|
108
|
+
"displayName": "John Doe",
|
|
109
|
+
"givenName": "John",
|
|
110
|
+
"jobTitle": "Sales Manager",
|
|
111
|
+
"mail": null,
|
|
112
|
+
"mobilePhone": null,
|
|
113
|
+
"officeLocation": "Vosselaar",
|
|
114
|
+
"preferredLanguage": "nl-BE",
|
|
115
|
+
"surname": "Doe",
|
|
116
|
+
"userPrincipalName": "john.doe@contoso.com",
|
|
117
|
+
"password": "SomePassw0rd"
|
|
118
|
+
}
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
=== "Text"
|
|
122
|
+
|
|
123
|
+
```text
|
|
124
|
+
businessPhones : []
|
|
125
|
+
displayName : John Doe
|
|
126
|
+
givenName : John
|
|
127
|
+
id : 990e2425-f595-43bc-85ed-b89a44093793
|
|
128
|
+
jobTitle : Sales Manager
|
|
129
|
+
mail : null
|
|
130
|
+
mobilePhone : null
|
|
131
|
+
officeLocation : Vosselaar
|
|
132
|
+
password : SomePassw0rd
|
|
133
|
+
preferredLanguage: nl-BE
|
|
134
|
+
surname : Doe
|
|
135
|
+
userPrincipalName: john.doe@contoso.com
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
=== "CSV"
|
|
139
|
+
|
|
140
|
+
```csv
|
|
141
|
+
id,businessPhones,displayName,givenName,jobTitle,mail,mobilePhone,officeLocation,preferredLanguage,surname,userPrincipalName,password
|
|
142
|
+
990e2425-f595-43bc-85ed-b89a44093793,[],John Doe,John,Sales Manager,,,Vosselaar,nl-BE,Doe,john.doe@contoso.com,SomePassw0rd
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
=== "Markdown"
|
|
146
|
+
|
|
147
|
+
```md
|
|
148
|
+
# aad user add --displayName "John Doe" --userName "john.doe@contoso.com" --password "SomePassw0rd" --firstName "John" --lastName "Doe" --jobTitle "Sales Manager" --officeLocation "Vosselaar" --preferredLanguage "nl-BE"
|
|
149
|
+
|
|
150
|
+
Date: 16/02/2023
|
|
151
|
+
|
|
152
|
+
## John Doe (990e2425-f595-43bc-85ed-b89a44093793)
|
|
153
|
+
|
|
154
|
+
Property | Value
|
|
155
|
+
---------|-------
|
|
156
|
+
id | 990e2425-f595-43bc-85ed-b89a44093793
|
|
157
|
+
businessPhones | []
|
|
158
|
+
displayName | John Doe
|
|
159
|
+
givenName | John
|
|
160
|
+
jobTitle | Sales Manager
|
|
161
|
+
mail | null
|
|
162
|
+
mobilePhone | null
|
|
163
|
+
officeLocation | Vosselaar
|
|
164
|
+
preferredLanguage | nl-BE
|
|
165
|
+
surname | Doe
|
|
166
|
+
userPrincipalName | john.doe@contoso.com
|
|
167
|
+
password | SomePassw0rd
|
|
168
|
+
```
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
# aad user license list
|
|
2
|
+
|
|
3
|
+
Lists the license details for a given user
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 aad user license list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--userId [userId]`
|
|
14
|
+
: The ID of the user. Specify either `userId` or `userName` but not both.
|
|
15
|
+
|
|
16
|
+
`--userName [userName]`
|
|
17
|
+
: User principal name of the user. Specify either `userId` or `userName` but not both.
|
|
18
|
+
|
|
19
|
+
--8<-- "docs/cmd/_global.md"
|
|
20
|
+
|
|
21
|
+
## Remarks
|
|
22
|
+
|
|
23
|
+
!!! tip
|
|
24
|
+
If you don't specify any option, the command will list the license details of the current logged in user. This does not work when using application permissions.
|
|
25
|
+
|
|
26
|
+
## Examples
|
|
27
|
+
|
|
28
|
+
List license details of the current logged in user.
|
|
29
|
+
|
|
30
|
+
```sh
|
|
31
|
+
m365 aad user license list
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
List license details of a specific user by its UPN.
|
|
35
|
+
|
|
36
|
+
```sh
|
|
37
|
+
m365 aad user license list --userName john.doe@contoso.com
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
List license details of a specific user by its ID.
|
|
41
|
+
|
|
42
|
+
```sh
|
|
43
|
+
m365 aad user license list --userId 59f80e08-24b1-41f8-8586-16765fd830d3
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
## Response
|
|
47
|
+
|
|
48
|
+
=== "JSON"
|
|
49
|
+
|
|
50
|
+
```json
|
|
51
|
+
[
|
|
52
|
+
{
|
|
53
|
+
"id": "x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw",
|
|
54
|
+
"skuId": "c42b9cae-ea4f-4ab7-9717-81576235ccac",
|
|
55
|
+
"skuPartNumber": "DEVELOPERPACK_E5",
|
|
56
|
+
"servicePlans": [
|
|
57
|
+
{
|
|
58
|
+
"servicePlanId": "7547a3fe-08ee-4ccb-b430-5077c5041653",
|
|
59
|
+
"servicePlanName": "YAMMER_ENTERPRISE",
|
|
60
|
+
"provisioningStatus": "Success",
|
|
61
|
+
"appliesTo": "User"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}
|
|
65
|
+
]
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
=== "Text"
|
|
69
|
+
|
|
70
|
+
```text
|
|
71
|
+
id : x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw
|
|
72
|
+
skuId : c42b9cae-ea4f-4ab7-9717-81576235ccac
|
|
73
|
+
skuPartNumber: DEVELOPERPACK_E5
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
=== "CSV"
|
|
77
|
+
|
|
78
|
+
```csv
|
|
79
|
+
id,skuId,skuPartNumber
|
|
80
|
+
x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw,c42b9cae-ea4f-4ab7-9717-81576235ccac,DEVELOPERPACK_E5
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
=== "Markdown"
|
|
84
|
+
|
|
85
|
+
```md
|
|
86
|
+
# aad user license list --userId "0c9c625f-faa9-4c3b-8cd8-d874b869f78c"
|
|
87
|
+
|
|
88
|
+
Date: 2/19/2023
|
|
89
|
+
|
|
90
|
+
## x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw
|
|
91
|
+
|
|
92
|
+
Property | Value
|
|
93
|
+
---------|-------
|
|
94
|
+
id | x4s03usaBkSMs5fbAhyttK6cK8RP6rdKlxeBV2I1zKw
|
|
95
|
+
skuId | c42b9cae-ea4f-4ab7-9717-81576235ccac
|
|
96
|
+
skuPartNumber | DEVELOPERPACK\_E5
|
|
97
|
+
servicePlans | [{"servicePlanId":"7547a3fe-08ee-4ccb-b430-5077c5041653","servicePlanName":"YAMMER\_ENTERPRISE","provisioningStatus":"Success","appliesTo":"User"}]
|
|
98
|
+
```
|
|
@@ -18,7 +18,7 @@ m365 aad user recyclebinitem clear [options]
|
|
|
18
18
|
## Remarks
|
|
19
19
|
|
|
20
20
|
!!! important
|
|
21
|
-
To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator
|
|
21
|
+
To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator.
|
|
22
22
|
|
|
23
23
|
!!! note
|
|
24
24
|
After running this command, it may take a minute before all deleted users are effectively removed from the tenant.
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
# aad user recyclebinitem list
|
|
2
|
+
|
|
3
|
+
Lists users from the recycle bin in the current tenant
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 aad user recyclebinitem list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
--8<-- "docs/cmd/_global.md"
|
|
14
|
+
|
|
15
|
+
## Examples
|
|
16
|
+
|
|
17
|
+
List all removed users
|
|
18
|
+
|
|
19
|
+
```sh
|
|
20
|
+
m365 aad user recyclebinitem list
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Response
|
|
24
|
+
|
|
25
|
+
=== "JSON"
|
|
26
|
+
|
|
27
|
+
```json
|
|
28
|
+
[
|
|
29
|
+
{
|
|
30
|
+
"businessPhones": [],
|
|
31
|
+
"displayName": "John Doe",
|
|
32
|
+
"givenName": "John Doe",
|
|
33
|
+
"jobTitle": "Developer",
|
|
34
|
+
"mail": "john@contoso.com",
|
|
35
|
+
"mobilePhone": "0476345130",
|
|
36
|
+
"officeLocation": "Washington",
|
|
37
|
+
"preferredLanguage": "nl-BE",
|
|
38
|
+
"surname": "John",
|
|
39
|
+
"userPrincipalName": "7e06b56615f340138bf879874d52e68ajohn@contoso.com",
|
|
40
|
+
"id": "7e06b566-15f3-4013-8bf8-79874d52e68a"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
=== "Text"
|
|
46
|
+
|
|
47
|
+
```text
|
|
48
|
+
id displayName userPrincipalName
|
|
49
|
+
------------------------------------ ----------- -----------------------------------------------
|
|
50
|
+
7e06b566-15f3-4013-8bf8-79874d52e68a John Doe 7e06b56615f340138bf879874d52e68ajohn@contoso.com
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
=== "CSV"
|
|
54
|
+
|
|
55
|
+
```csv
|
|
56
|
+
id,displayName,userPrincipalName
|
|
57
|
+
7e06b566-15f3-4013-8bf8-79874d52e68a,John Doe,7e06b56615f340138bf879874d52e68ajohn@contoso.com
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
=== "Markdown"
|
|
61
|
+
|
|
62
|
+
```md
|
|
63
|
+
# aad user recyclebinitem list
|
|
64
|
+
|
|
65
|
+
Date: 14/02/2023
|
|
66
|
+
|
|
67
|
+
## John Doe (7e06b566-15f3-4013-8bf8-79874d52e68a)
|
|
68
|
+
|
|
69
|
+
Property | Value
|
|
70
|
+
---------|-------
|
|
71
|
+
businessPhones | []
|
|
72
|
+
displayName | John Doe
|
|
73
|
+
givenName | John Doe
|
|
74
|
+
jobTitle | Developer
|
|
75
|
+
mail | john@contoso.com
|
|
76
|
+
mobilePhone | 0476345130
|
|
77
|
+
officeLocation | Washington
|
|
78
|
+
preferredLanguage | nl-BE
|
|
79
|
+
surname | John
|
|
80
|
+
userPrincipalName | 7e06b56615f340138bf879874d52e68ajohn@contoso.com
|
|
81
|
+
id | 7e06b566-15f3-4013-8bf8-79874d52e68a
|
|
82
|
+
```
|
|
@@ -21,7 +21,7 @@ m365 aad user recyclebinitem remove [options]
|
|
|
21
21
|
## Remarks
|
|
22
22
|
|
|
23
23
|
!!! important
|
|
24
|
-
To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator
|
|
24
|
+
To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator.
|
|
25
25
|
|
|
26
26
|
!!! note
|
|
27
27
|
After running this command, it may take a minute before the deleted user is effectively removed from the tenant.
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# aad user remove
|
|
2
|
+
|
|
3
|
+
Removes a specific user
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 aad user remove [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`--id [id]`
|
|
14
|
+
: The ID of the user. Specify either `id` or `userName` but not both.
|
|
15
|
+
|
|
16
|
+
`--userName [userName]`
|
|
17
|
+
: User principal name of the user. Specify either `id` or `userName` but not both.
|
|
18
|
+
|
|
19
|
+
`--confirm`
|
|
20
|
+
: Don't prompt for confirmation.
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Remarks
|
|
25
|
+
|
|
26
|
+
!!! important
|
|
27
|
+
If the user with the specified id or user name doesn't exist, you will get a `Resource 'xyz' does not exist or one of its queried reference-property objects are not present.` error.
|
|
28
|
+
|
|
29
|
+
!!! important
|
|
30
|
+
To use this command you must be a Global administrator, User administrator or Privileged Authentication administrator.
|
|
31
|
+
|
|
32
|
+
!!! note
|
|
33
|
+
After running this command, it may take a minute before the user is effectively moved to the recycle bin.
|
|
34
|
+
|
|
35
|
+
## Examples
|
|
36
|
+
|
|
37
|
+
Removes a specific user by id
|
|
38
|
+
|
|
39
|
+
```sh
|
|
40
|
+
m365 aad user remove --id a33bd401-9117-4e0e-bb7b-3f61c1539e10
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Removes a specific user by its UPN
|
|
44
|
+
|
|
45
|
+
```sh
|
|
46
|
+
m365 aad user remove --name john.doe@contoso.com
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Response
|
|
50
|
+
|
|
51
|
+
The command won't return a response on success.
|
|
@@ -74,7 +74,7 @@ m365 aad user set --objectId 1caf7dcd-7e83-4c3a-94f7-932a1299c844 --accountEnabl
|
|
|
74
74
|
Reset password of a given user by userPrincipalName and require the user to change the password on the next sign in
|
|
75
75
|
|
|
76
76
|
```sh
|
|
77
|
-
m365 aad user set --userPrincipalName steve@contoso.onmicrosoft.com --resetPassword --
|
|
77
|
+
m365 aad user set --userPrincipalName steve@contoso.onmicrosoft.com --resetPassword --newPassword 6NLUId79Lc24 --forceChangePasswordNextSignIn
|
|
78
78
|
```
|
|
79
79
|
|
|
80
80
|
Change password of the currently logged in user
|
|
@@ -10,8 +10,8 @@ m365 flow environment get [options]
|
|
|
10
10
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
|
-
`-n, --name
|
|
14
|
-
: The name of the environment to get information about
|
|
13
|
+
`-n, --name [name]`
|
|
14
|
+
: The name of the environment to get information about. When not specified, the default environment is retrieved.
|
|
15
15
|
|
|
16
16
|
--8<-- "docs/cmd/_global.md"
|
|
17
17
|
|
|
@@ -24,12 +24,17 @@ If the environment with the name you specified doesn't exist, you will get the `
|
|
|
24
24
|
|
|
25
25
|
## Examples
|
|
26
26
|
|
|
27
|
-
Get information about
|
|
27
|
+
Get information about a Microsoft Flow environment specified by name
|
|
28
28
|
|
|
29
29
|
```sh
|
|
30
30
|
m365 flow environment get --name Default-d87a7535-dd31-4437-bfe1-95340acd55c5
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
+
Get information about the default Microsoft Flow environment
|
|
34
|
+
```sh
|
|
35
|
+
m365 flow environment get
|
|
36
|
+
```
|
|
37
|
+
|
|
33
38
|
## Response
|
|
34
39
|
|
|
35
40
|
### Standard response
|
|
@@ -129,3 +134,26 @@ m365 flow environment get --name Default-d87a7535-dd31-4437-bfe1-95340acd55c5
|
|
|
129
134
|
name,id,location,displayName,provisioningState,environmentSku,azureRegionHint,isDefault
|
|
130
135
|
Default-d87a7535-dd31-4437-bfe1-95340acd55c5,/providers/Microsoft.ProcessSimple/environments/Default-d87a7535-dd31-4437-bfe1-95340acd55c5,india,contoso (default),Succeeded,Default,centralindia,1
|
|
131
136
|
```
|
|
137
|
+
|
|
138
|
+
=== "Markdown"
|
|
139
|
+
|
|
140
|
+
```md
|
|
141
|
+
# flow environment get
|
|
142
|
+
|
|
143
|
+
Date: 8/2/2023
|
|
144
|
+
|
|
145
|
+
## contoso (default) (/providers/Microsoft.ProcessSimple/environments/Default-d87a7535-dd31-4437-bfe1-95340acd55c5)
|
|
146
|
+
|
|
147
|
+
Property | Value
|
|
148
|
+
---------|-------
|
|
149
|
+
name | Default-d87a7535-dd31-4437-bfe1-95340acd55c5
|
|
150
|
+
location | india
|
|
151
|
+
type | Microsoft.ProcessSimple/environments
|
|
152
|
+
id | /providers/Microsoft.ProcessSimple/environments/Default-d87a7535-dd31-4437-bfe1-95340acd55c5
|
|
153
|
+
properties | {"displayName":"contoso (default)","createdTime":"2019-12-21T18:32:11.8708704Z","createdBy":{"id":"SYSTEM","displayName": "SYSTEM","type": "NotSpecified"},"provisioningState":"Succeeded","creationType":"DefaultTenant","environmentSku":"Default","environmentType":"NotSpecified","states":{"management":{"id":"NotSpecified"},"runtime":{"runtimeReasonCode":"NotSpecified","requestedBy":{"displayName":"SYSTEM","type":"NotSpecified"},"id":"Enabled"}},"isDefault":true,"isPayAsYouGoEnabled":false,"azureRegionHint":"centralindia","runtimeEndpoints":{"microsoft.BusinessAppPlatform":"https://india.api.bap.microsoft.com","microsoft.CommonDataModel":"https://india.api.cds.microsoft.com","microsoft.PowerApps":"https://india.api.powerapps.com",microsoft.PowerAppsAdvisor":"https://india.api.advisor.powerapps.com","microsoft.PowerVirtualAgents":"https://powervamg.in-il101.gateway.prod.island.powerapps.com","microsoft.ApiManagement":"https://management.INDIA.azure-apihub.net","microsoft.Flow":"https://india.api.flow.microsoft.com"},"linkedEnvironmentMetadata":{"type":"NotSpecified","resourceId":"3aa550bf-52ac-42fc-98f7-5d1833c1501c","friendlyName":"contoso (default)","uniqueName":"orgfc80770f","domainName":"orgfc80770f","version":"9.2.22105.00154","instanceUrl":"https://orgfc80770f.crm8.dynamics.com/","instanceApiUrl":"https://orgfc80770f.api.crm8.dynamics.com","baseLanguage":1033,"instanceState":"Ready","createdTime":"2019-12-25T15:46:14.433Z"},"environmentFeatures":{"isOpenApiEnabled":false},"cluster":{"category":"Prod","number":"101","uriSuffix":"in-il101.gateway.prod.island","geoShortName":"IN","environment":"Prod"},"governanceConfiguration":{"protectionLevel":"Basic"}}
|
|
154
|
+
displayName | contoso (default)
|
|
155
|
+
provisioningState | Succeeded
|
|
156
|
+
environmentSku | Default
|
|
157
|
+
azureRegionHint | centralindia
|
|
158
|
+
isDefault | true
|
|
159
|
+
```
|
|
@@ -14,7 +14,7 @@ m365 spo homesite get [options]
|
|
|
14
14
|
|
|
15
15
|
## Examples
|
|
16
16
|
|
|
17
|
-
Get information about the Home Site
|
|
17
|
+
Get information about the Home Site.
|
|
18
18
|
|
|
19
19
|
```sh
|
|
20
20
|
m365 spo homesite get
|
|
@@ -51,6 +51,25 @@ m365 spo homesite get
|
|
|
51
51
|
af80c11f-0138-4d72-bb37-514542c3aabb,6f90666d-b0e7-40c3-991f-4ab051d00a70,https://contoso.sharepoint.com/sites/intra/siteassets/work.png,Intranet,https://contoso.sharepoint.com/sites/intra
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
+
=== "Markdown"
|
|
55
|
+
|
|
56
|
+
```md
|
|
57
|
+
# spo homesite get
|
|
58
|
+
|
|
59
|
+
Date: 2/20/2023
|
|
60
|
+
|
|
61
|
+
## Intranet (https://contoso.sharepoint.com/sites/intra)
|
|
62
|
+
|
|
63
|
+
Property | Value
|
|
64
|
+
---------|-------
|
|
65
|
+
IsInDraftMode | false
|
|
66
|
+
SiteId | af80c11f-0138-4d72-bb37-514542c3aabb
|
|
67
|
+
WebId |6f90666d-b0e7-40c3-991f-4ab051d00a70
|
|
68
|
+
LogoUrl | https://contoso.sharepoint.com/sites/intra/siteassets/work.png
|
|
69
|
+
Title | Intranet
|
|
70
|
+
Url | https://contoso.sharepoint.com/sites/intra
|
|
71
|
+
```
|
|
72
|
+
|
|
54
73
|
## More information
|
|
55
74
|
|
|
56
75
|
- SharePoint home sites: a landing for your organization on the intelligent intranet: [https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933](https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933)
|
|
@@ -11,7 +11,7 @@ m365 spo homesite remove [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`--confirm`
|
|
14
|
-
: Do not prompt for confirmation before removing the Home Site
|
|
14
|
+
: Do not prompt for confirmation before removing the Home Site.
|
|
15
15
|
|
|
16
16
|
--8<-- "docs/cmd/_global.md"
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ m365 spo homesite remove [options]
|
|
|
20
20
|
|
|
21
21
|
## Examples
|
|
22
22
|
|
|
23
|
-
Removes the current Home Site without confirmation
|
|
23
|
+
Removes the current Home Site without confirmation.
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
26
|
m365 spo homesite remove --confirm
|
|
@@ -46,6 +46,12 @@ m365 spo homesite remove --confirm
|
|
|
46
46
|
https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details.
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
=== "Markdown"
|
|
50
|
+
|
|
51
|
+
```md
|
|
52
|
+
https://contoso.sharepoint.com has been removed as a Home site. It may take some time for the change to apply. Check aka.ms/homesites for details.
|
|
53
|
+
```
|
|
54
|
+
|
|
49
55
|
## More information
|
|
50
56
|
|
|
51
57
|
- SharePoint home sites, a landing for your organization on the intelligent intranet: [https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933](https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933)
|
|
@@ -11,7 +11,7 @@ m365 spo homesite set [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-u, --siteUrl <siteUrl>`
|
|
14
|
-
: The URL of the site to set as Home Site
|
|
14
|
+
: The URL of the site to set as Home Site.
|
|
15
15
|
|
|
16
16
|
--8<-- "docs/cmd/_global.md"
|
|
17
17
|
|
|
@@ -20,7 +20,7 @@ m365 spo homesite set [options]
|
|
|
20
20
|
|
|
21
21
|
## Examples
|
|
22
22
|
|
|
23
|
-
Set the specified site as the Home Site
|
|
23
|
+
Set the specified site as the Home Site.
|
|
24
24
|
|
|
25
25
|
```sh
|
|
26
26
|
m365 spo homesite set --siteUrl https://contoso.sharepoint.com/sites/comms
|
|
@@ -46,6 +46,12 @@ m365 spo homesite set --siteUrl https://contoso.sharepoint.com/sites/comms
|
|
|
46
46
|
The Home site has been set to https://contoso.sharepoint.com. It may take some time for the change to apply. Check aka.ms/homesites for details.
|
|
47
47
|
```
|
|
48
48
|
|
|
49
|
+
=== "Markdown"
|
|
50
|
+
|
|
51
|
+
```md
|
|
52
|
+
The Home site has been set to https://contoso.sharepoint.com. It may take some time for the change to apply. Check aka.ms/homesites for details.
|
|
53
|
+
```
|
|
54
|
+
|
|
49
55
|
## More information
|
|
50
56
|
|
|
51
57
|
- SharePoint home sites: a landing for your organization on the intelligent intranet: [https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933](https://techcommunity.microsoft.com/t5/Microsoft-SharePoint-Blog/SharePoint-home-sites-a-landing-for-your-organization-on-the/ba-p/621933)
|
|
@@ -11,22 +11,22 @@ m365 spo hubsite connect [options]
|
|
|
11
11
|
## Options
|
|
12
12
|
|
|
13
13
|
`-i, --id [id]`
|
|
14
|
-
: ID of the hub site. Specify either `id`, `title
|
|
14
|
+
: ID of the hub site. Specify either `id`, `title`, or `url` but not multiple.
|
|
15
15
|
|
|
16
16
|
`-t, --title [title]`
|
|
17
|
-
: Title of the hub site. Specify either `id`, `title
|
|
17
|
+
: Title of the hub site. Specify either `id`, `title`, or `url` but not multiple.
|
|
18
18
|
|
|
19
19
|
`-u, --url [url]`
|
|
20
|
-
: Absolute or server-relative URL of the hub site. Specify either `id`, `title
|
|
20
|
+
: Absolute or server-relative URL of the hub site. Specify either `id`, `title`, or `url` but not multiple.
|
|
21
21
|
|
|
22
22
|
`--parentId [parentId]`
|
|
23
|
-
: ID of the parent hub site. Specify either `parentId`, `parentTitle
|
|
23
|
+
: ID of the parent hub site. Specify either `parentId`, `parentTitle`, or `parentUrl` but not multiple.
|
|
24
24
|
|
|
25
25
|
`--parentTitle [parentTitle]`
|
|
26
|
-
: Title of the parent hub site. Specify either `parentId`, `parentTitle
|
|
26
|
+
: Title of the parent hub site. Specify either `parentId`, `parentTitle`, or `parentUrl` but not multiple.
|
|
27
27
|
|
|
28
28
|
`--parentUrl [parentUrl]`
|
|
29
|
-
: Absolute or server-relative URL of the parent hub site. Specify either `parentId`, `parentTitle
|
|
29
|
+
: Absolute or server-relative URL of the parent hub site. Specify either `parentId`, `parentTitle`, or `parentUrl` but not multiple.
|
|
30
30
|
|
|
31
31
|
--8<-- "docs/cmd/_global.md"
|
|
32
32
|
|
|
@@ -39,19 +39,19 @@ To connect a regular site to a hub site, use command [spo site hubsite connect](
|
|
|
39
39
|
|
|
40
40
|
## Examples
|
|
41
41
|
|
|
42
|
-
Connect a specific hub site to specific parent hub site by ID
|
|
42
|
+
Connect a specific hub site to specific parent hub site by ID.
|
|
43
43
|
|
|
44
44
|
```sh
|
|
45
45
|
m365 spo hubsite connect --id 2c1ba4c4-cd9b-4417-832f-92a34bc34b2a --parentId 637ed2ea-b65b-4a4b-a3d7-ad86953224a4
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Connect a specific hub site to specific parent hub site by URL
|
|
48
|
+
Connect a specific hub site to specific parent hub site by URL.
|
|
49
49
|
|
|
50
50
|
```sh
|
|
51
51
|
m365 spo hubsite connect --url https://contoso.sharepoint.com/sites/project-x --parentUrl https://contoso.sharepoint.com/sites/projects
|
|
52
52
|
```
|
|
53
53
|
|
|
54
|
-
Connect a specific hub site with title to a parent hub site with ID
|
|
54
|
+
Connect a specific hub site with title to a parent hub site with ID.
|
|
55
55
|
|
|
56
56
|
```sh
|
|
57
57
|
m365 spo hubsite connect --title "My hub site" --parentId 637ed2ea-b65b-4a4b-a3d7-ad86953224a4
|