@pnp/cli-microsoft365 11.7.0-beta.b67a258 → 11.7.0-beta.ba78c1f
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/.devproxy/api-specs/sharepoint.yaml +53 -0
- package/allCommands.json +1 -1
- package/allCommandsFull.json +1 -1
- package/dist/config.js +1 -0
- package/dist/m365/context/commands/option/option-list.js +6 -1
- package/dist/m365/entra/commands/resourcenamespace/resourcenamespace-list.js +6 -0
- package/dist/m365/entra/commands/user/user-license-add.js +2 -1
- package/dist/m365/entra/commands/user/user-license-list.js +4 -9
- package/dist/m365/entra/commands/user/user-license-remove.js +2 -1
- package/dist/m365/external/commands/connection/connection-list.js +6 -0
- package/dist/m365/outlook/commands/calendar/calendar-add.js +85 -0
- package/dist/m365/outlook/commands/calendar/calendar-get.js +71 -0
- package/dist/m365/outlook/commands/calendar/calendar-remove.js +100 -0
- package/dist/m365/outlook/commands/calendar/calendar-set.js +132 -0
- package/dist/m365/outlook/commands/calendargroup/calendargroup-get.js +114 -0
- package/dist/m365/outlook/commands/calendargroup/calendargroup-set.js +115 -0
- package/dist/m365/outlook/commands/event/event-cancel.js +103 -0
- package/dist/m365/outlook/commands/event/event-list.js +115 -0
- package/dist/m365/outlook/commands/event/event-remove.js +104 -0
- package/dist/m365/outlook/commands.js +9 -0
- package/dist/m365/spfx/commands/SpfxCompatibilityMatrix.js +643 -0
- package/dist/m365/spfx/commands/project/DeployWorkflow.js +2 -2
- package/dist/m365/spfx/commands/project/project-azuredevops-pipeline-add.js +13 -1
- package/dist/m365/spfx/commands/project/project-doctor/doctor-1.23.0-rc.0.js +19 -0
- package/dist/m365/spfx/commands/project/project-doctor.js +2 -1
- package/dist/m365/spfx/commands/project/project-github-workflow-add.js +16 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002021_DEVDEP_rushstack_eslint_config.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN002032_DEVDEP_typescript_eslint_parser.js +2 -2
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015008_FILE_eslintrc_js.js +1 -1
- package/dist/m365/spfx/commands/project/project-upgrade/rules/FN015016_FILE_eslint_config_js.js +10 -0
- package/dist/m365/spfx/commands/project/project-upgrade/upgrade-1.23.0-rc.0.js +84 -0
- package/dist/m365/spfx/commands/project/project-upgrade.js +12 -11
- package/dist/m365/spfx/commands/spfx-doctor.js +5 -631
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-add.js +13 -1
- package/dist/m365/spo/commands/applicationcustomizer/applicationcustomizer-set.js +24 -3
- package/dist/m365/spo/commands/brandcenter/brandcenter-colors-list.js +59 -0
- package/dist/m365/spo/commands/file/file-archive.js +83 -0
- package/dist/m365/spo/commands/propertybag/propertybag-set.js +3 -9
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-add.js +20 -0
- package/dist/m365/spo/commands/tenant/tenant-applicationcustomizer-set.js +27 -2
- package/dist/m365/spo/commands/tenant/tenant-settings-set.js +5 -1
- package/dist/m365/spo/commands.js +2 -0
- package/dist/m365/teams/commands/chat/chat-message-list.js +43 -4
- package/dist/request.js +0 -16
- package/dist/utils/calendar.js +37 -0
- package/dist/utils/calendarGroup.js +22 -0
- package/dist/utils/entraApp.js +9 -2
- package/dist/utils/spfx.js +59 -0
- package/docs/docs/cmd/entra/license/license-list.mdx +19 -0
- package/docs/docs/cmd/entra/m365group/m365group-conversation-list.mdx +19 -0
- package/docs/docs/cmd/entra/m365group/m365group-conversation-post-list.mdx +19 -0
- package/docs/docs/cmd/entra/m365group/m365group-user-add.mdx +21 -0
- package/docs/docs/cmd/entra/m365group/m365group-user-list.mdx +19 -0
- package/docs/docs/cmd/entra/m365group/m365group-user-remove.mdx +21 -0
- package/docs/docs/cmd/entra/m365group/m365group-user-set.mdx +21 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-add.mdx +19 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-get.mdx +19 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-list.mdx +19 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-remove.mdx +21 -0
- package/docs/docs/cmd/entra/roledefinition/roledefinition-set.mdx +21 -0
- package/docs/docs/cmd/entra/siteclassification/siteclassification-disable.mdx +21 -0
- package/docs/docs/cmd/entra/siteclassification/siteclassification-enable.mdx +21 -0
- package/docs/docs/cmd/entra/siteclassification/siteclassification-get.mdx +19 -0
- package/docs/docs/cmd/entra/siteclassification/siteclassification-set.mdx +20 -0
- package/docs/docs/cmd/entra/user/user-groupmembership-list.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-guest-add.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-license-add.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-license-list.mdx +18 -1
- package/docs/docs/cmd/entra/user/user-license-remove.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-password-validate.mdx +12 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-clear.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-list.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-remove.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-recyclebinitem-restore.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-registrationdetails-list.mdx +19 -0
- package/docs/docs/cmd/entra/user/user-session-revoke.mdx +21 -0
- package/docs/docs/cmd/entra/user/user-signin-list.mdx +19 -0
- package/docs/docs/cmd/exo/approleassignment/approleassignment-add.mdx +19 -0
- package/docs/docs/cmd/external/connection/connection-add.mdx +21 -0
- package/docs/docs/cmd/external/connection/connection-doctor.mdx +19 -0
- package/docs/docs/cmd/external/connection/connection-get.mdx +19 -0
- package/docs/docs/cmd/external/connection/connection-list.mdx +19 -0
- package/docs/docs/cmd/external/connection/connection-remove.mdx +21 -0
- package/docs/docs/cmd/external/connection/connection-schema-add.mdx +21 -0
- package/docs/docs/cmd/external/connection/connection-urltoitemresolver-add.mdx +21 -0
- package/docs/docs/cmd/external/item/item-add.mdx +19 -0
- package/docs/docs/cmd/file/convert/convert-pdf.mdx +21 -0
- package/docs/docs/cmd/file/file-add.mdx +21 -0
- package/docs/docs/cmd/file/file-copy.mdx +21 -0
- package/docs/docs/cmd/file/file-list.mdx +19 -0
- package/docs/docs/cmd/file/file-move.mdx +21 -0
- package/docs/docs/cmd/outlook/calendar/calendar-add.mdx +165 -0
- package/docs/docs/cmd/outlook/calendar/calendar-get.mdx +165 -0
- package/docs/docs/cmd/outlook/calendar/calendar-remove.mdx +86 -0
- package/docs/docs/cmd/outlook/calendar/calendar-set.mdx +178 -0
- package/docs/docs/cmd/outlook/calendargroup/calendargroup-get.mdx +125 -0
- package/docs/docs/cmd/outlook/calendargroup/calendargroup-set.mdx +83 -0
- package/docs/docs/cmd/outlook/event/event-cancel.mdx +85 -0
- package/docs/docs/cmd/outlook/event/event-list.mdx +245 -0
- package/docs/docs/cmd/outlook/event/event-remove.mdx +85 -0
- package/docs/docs/cmd/spfx/project/project-upgrade.mdx +1 -1
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-add.mdx +14 -11
- package/docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-set.mdx +9 -6
- package/docs/docs/cmd/spo/brandcenter/brandcenter-colors-list.mdx +115 -0
- package/docs/docs/cmd/spo/file/file-archive.mdx +68 -0
- package/docs/docs/cmd/spo/propertybag/propertybag-set.mdx +1 -1
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-add.mdx +13 -10
- package/docs/docs/cmd/spo/tenant/tenant-applicationcustomizer-set.mdx +7 -4
- package/docs/docs/cmd/spo/tenant/tenant-settings-set.mdx +3 -0
- package/docs/docs/cmd/teams/chat/chat-message-list.mdx +23 -2
- package/npm-shrinkwrap.json +0 -7
- package/package.json +2 -1
package/dist/utils/spfx.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Range, coerce, gt, validRange } from 'semver';
|
|
1
2
|
export const spfx = {
|
|
2
3
|
isReactProject(project) {
|
|
3
4
|
return (typeof project.yoRcJson !== 'undefined' &&
|
|
@@ -11,6 +12,64 @@ export const spfx = {
|
|
|
11
12
|
typeof project.yoRcJson['@microsoft/generator-sharepoint'] !== 'undefined' &&
|
|
12
13
|
project.yoRcJson["@microsoft/generator-sharepoint"].framework === 'knockout') ||
|
|
13
14
|
typeof project.packageJson?.dependencies?.['knockout'] !== 'undefined';
|
|
15
|
+
},
|
|
16
|
+
getHighestNodeVersion(versionRange) {
|
|
17
|
+
if (!versionRange) {
|
|
18
|
+
throw new Error('Node version range was not provided.');
|
|
19
|
+
}
|
|
20
|
+
const ranges = versionRange
|
|
21
|
+
.split('||')
|
|
22
|
+
.map(range => range.trim())
|
|
23
|
+
.filter(range => range.length > 0);
|
|
24
|
+
let highestMajor = null;
|
|
25
|
+
let exactVersion = null;
|
|
26
|
+
const simpleVersionPattern = /^\d+(\.\d+(\.\d+)?)?$/;
|
|
27
|
+
if (ranges.every(r => simpleVersionPattern.test(r))) {
|
|
28
|
+
const highest = ranges.reduce((best, curr) => gt(coerce(curr), coerce(best)) ? curr : best);
|
|
29
|
+
const parts = highest.split('.');
|
|
30
|
+
if (parts.length >= 3) {
|
|
31
|
+
return highest;
|
|
32
|
+
}
|
|
33
|
+
if (parts.length === 2) {
|
|
34
|
+
return `${highest}.x`;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
for (const rangeString of ranges) {
|
|
38
|
+
const normalized = validRange(rangeString);
|
|
39
|
+
if (!normalized) {
|
|
40
|
+
continue;
|
|
41
|
+
}
|
|
42
|
+
const rangeObj = new Range(normalized);
|
|
43
|
+
let maxMajor = 0;
|
|
44
|
+
// Analyze the range to find the maximum major version
|
|
45
|
+
for (const comparatorSet of rangeObj.set) {
|
|
46
|
+
for (const comparator of comparatorSet) {
|
|
47
|
+
if (comparator.operator === '<') {
|
|
48
|
+
// Exclusive upper bound: <17.0.0 means max major is 16
|
|
49
|
+
maxMajor = Math.max(maxMajor, comparator.semver.major - 1);
|
|
50
|
+
}
|
|
51
|
+
else if (comparator.operator === '<=') {
|
|
52
|
+
// Inclusive upper bound: <=17.0.0 means we can use exactly that version
|
|
53
|
+
maxMajor = Math.max(maxMajor, comparator.semver.major);
|
|
54
|
+
// Store the exact version for <= comparator
|
|
55
|
+
if (highestMajor === null || comparator.semver.major > highestMajor) {
|
|
56
|
+
exactVersion = comparator.semver.version;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
else if (comparator.operator === '>=' || comparator.operator === '>') {
|
|
60
|
+
// For lower bounds use the major version
|
|
61
|
+
maxMajor = Math.max(maxMajor, comparator.semver.major);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
// Track the highest major version across all ranges
|
|
66
|
+
highestMajor = Math.max(highestMajor ?? 0, maxMajor);
|
|
67
|
+
}
|
|
68
|
+
if (highestMajor === null) {
|
|
69
|
+
throw new Error(`Unable to resolve the highest Node version for range '${versionRange}'.`);
|
|
70
|
+
}
|
|
71
|
+
// Return exact version if we have a <= comparator, otherwise use .x
|
|
72
|
+
return exactVersion || `${highestMajor}.x`;
|
|
14
73
|
}
|
|
15
74
|
};
|
|
16
75
|
//# sourceMappingURL=spfx.js.map
|
|
@@ -16,6 +16,25 @@ m365 entra license list [options]
|
|
|
16
16
|
|
|
17
17
|
<Global />
|
|
18
18
|
|
|
19
|
+
## Permissions
|
|
20
|
+
|
|
21
|
+
<Tabs>
|
|
22
|
+
<TabItem value="Delegated">
|
|
23
|
+
|
|
24
|
+
| Resource | Permissions |
|
|
25
|
+
|-----------------|----------------------------|
|
|
26
|
+
| Microsoft Graph | LicenseAssignment.Read.All |
|
|
27
|
+
|
|
28
|
+
</TabItem>
|
|
29
|
+
<TabItem value="Application">
|
|
30
|
+
|
|
31
|
+
| Resource | Permissions |
|
|
32
|
+
|-----------------|----------------------------|
|
|
33
|
+
| Microsoft Graph | LicenseAssignment.Read.All |
|
|
34
|
+
|
|
35
|
+
</TabItem>
|
|
36
|
+
</Tabs>
|
|
37
|
+
|
|
19
38
|
## Examples
|
|
20
39
|
|
|
21
40
|
List all licenses within the tenant.
|
|
@@ -24,6 +24,25 @@ m365 entra m365group conversation list [options]
|
|
|
24
24
|
|
|
25
25
|
<Global />
|
|
26
26
|
|
|
27
|
+
## Permissions
|
|
28
|
+
|
|
29
|
+
<Tabs>
|
|
30
|
+
<TabItem value="Delegated">
|
|
31
|
+
|
|
32
|
+
| Resource | Permissions |
|
|
33
|
+
|-----------------|-----------------------------|
|
|
34
|
+
| Microsoft Graph | Group-Conversation.Read.All |
|
|
35
|
+
|
|
36
|
+
</TabItem>
|
|
37
|
+
<TabItem value="Application">
|
|
38
|
+
|
|
39
|
+
| Resource | Permissions |
|
|
40
|
+
|-----------------|-----------------------------|
|
|
41
|
+
| Microsoft Graph | Group-Conversation.Read.All |
|
|
42
|
+
|
|
43
|
+
</TabItem>
|
|
44
|
+
</Tabs>
|
|
45
|
+
|
|
27
46
|
## Examples
|
|
28
47
|
|
|
29
48
|
Lists conversations for the Microsoft 365 group specified by id.
|
|
@@ -27,6 +27,25 @@ m365 entra m365group conversation post list [options]
|
|
|
27
27
|
|
|
28
28
|
<Global />
|
|
29
29
|
|
|
30
|
+
## Permissions
|
|
31
|
+
|
|
32
|
+
<Tabs>
|
|
33
|
+
<TabItem value="Delegated">
|
|
34
|
+
|
|
35
|
+
| Resource | Permissions |
|
|
36
|
+
|-----------------|-----------------------------|
|
|
37
|
+
| Microsoft Graph | Group-Conversation.Read.All |
|
|
38
|
+
|
|
39
|
+
</TabItem>
|
|
40
|
+
<TabItem value="Application">
|
|
41
|
+
|
|
42
|
+
| Resource | Permissions |
|
|
43
|
+
|-----------------|-----------------------------|
|
|
44
|
+
| Microsoft Graph | Group-Conversation.Read.All |
|
|
45
|
+
|
|
46
|
+
</TabItem>
|
|
47
|
+
</Tabs>
|
|
48
|
+
|
|
30
49
|
## Examples
|
|
31
50
|
|
|
32
51
|
Lists the posts of the specific conversation of Microsoft 365 group by groupId
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# entra m365group user add
|
|
4
6
|
|
|
@@ -43,6 +45,25 @@ m365 teams user add [options]
|
|
|
43
45
|
|
|
44
46
|
<Global />
|
|
45
47
|
|
|
48
|
+
## Permissions
|
|
49
|
+
|
|
50
|
+
<Tabs>
|
|
51
|
+
<TabItem value="Delegated">
|
|
52
|
+
|
|
53
|
+
| Resource | Permissions |
|
|
54
|
+
|-----------------|-----------------------------------------|
|
|
55
|
+
| Microsoft Graph | Group.ReadWrite.All, User.ReadBasic.All |
|
|
56
|
+
|
|
57
|
+
</TabItem>
|
|
58
|
+
<TabItem value="Application">
|
|
59
|
+
|
|
60
|
+
| Resource | Permissions |
|
|
61
|
+
|-----------------|------------------------------------|
|
|
62
|
+
| Microsoft Graph | Group.ReadWrite.All, User.Read.All |
|
|
63
|
+
|
|
64
|
+
</TabItem>
|
|
65
|
+
</Tabs>
|
|
66
|
+
|
|
46
67
|
## Examples
|
|
47
68
|
|
|
48
69
|
Add a new member with the userNames parameter to the specified Microsoft 365 Group.
|
|
@@ -37,6 +37,25 @@ m365 entra m365group user list [options]
|
|
|
37
37
|
|
|
38
38
|
When the `properties` option includes values with a `/`, for example: `manager/displayName`, an additional `$expand` query parameter will be included on `manager`.
|
|
39
39
|
|
|
40
|
+
## Permissions
|
|
41
|
+
|
|
42
|
+
<Tabs>
|
|
43
|
+
<TabItem value="Delegated">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|------------------------------------------|
|
|
47
|
+
| Microsoft Graph | GroupMember.Read.All, User.ReadBasic.All |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
<TabItem value="Application">
|
|
51
|
+
|
|
52
|
+
| Resource | Permissions |
|
|
53
|
+
|-----------------|-------------------------------------|
|
|
54
|
+
| Microsoft Graph | GroupMember.Read.All, User.Read.All |
|
|
55
|
+
|
|
56
|
+
</TabItem>
|
|
57
|
+
</Tabs>
|
|
58
|
+
|
|
40
59
|
## Examples
|
|
41
60
|
|
|
42
61
|
List all users and their role from Microsoft 365 group specified by ID.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# entra m365group user remove
|
|
4
6
|
|
|
@@ -41,6 +43,25 @@ m365 entra m365group user remove [options]
|
|
|
41
43
|
|
|
42
44
|
You can remove users from a Microsoft 365 Group or Microsoft Teams team if you are owner of that group or team.
|
|
43
45
|
|
|
46
|
+
## Permissions
|
|
47
|
+
|
|
48
|
+
<Tabs>
|
|
49
|
+
<TabItem value="Delegated">
|
|
50
|
+
|
|
51
|
+
| Resource | Permissions |
|
|
52
|
+
|-----------------|-----------------------------------------|
|
|
53
|
+
| Microsoft Graph | Group.ReadWrite.All, User.ReadBasic.All |
|
|
54
|
+
|
|
55
|
+
</TabItem>
|
|
56
|
+
<TabItem value="Application">
|
|
57
|
+
|
|
58
|
+
| Resource | Permissions |
|
|
59
|
+
|-----------------|------------------------------------|
|
|
60
|
+
| Microsoft Graph | Group.ReadWrite.All, User.Read.All |
|
|
61
|
+
|
|
62
|
+
</TabItem>
|
|
63
|
+
</Tabs>
|
|
64
|
+
|
|
44
65
|
## Examples
|
|
45
66
|
|
|
46
67
|
Removes user from the specified Microsoft 365 Group.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# entra m365group user set
|
|
4
6
|
|
|
@@ -41,6 +43,25 @@ m365 entra m365group user set [options]
|
|
|
41
43
|
|
|
42
44
|
The command will return an error if the user already has the specified role in the given Microsoft 365 Group or Microsoft Teams team.
|
|
43
45
|
|
|
46
|
+
## Permissions
|
|
47
|
+
|
|
48
|
+
<Tabs>
|
|
49
|
+
<TabItem value="Delegated">
|
|
50
|
+
|
|
51
|
+
| Resource | Permissions |
|
|
52
|
+
|-----------------|-----------------------------------------|
|
|
53
|
+
| Microsoft Graph | Group.ReadWrite.All, User.ReadBasic.All |
|
|
54
|
+
|
|
55
|
+
</TabItem>
|
|
56
|
+
<TabItem value="Application">
|
|
57
|
+
|
|
58
|
+
| Resource | Permissions |
|
|
59
|
+
|-----------------|------------------------------------|
|
|
60
|
+
| Microsoft Graph | Group.ReadWrite.All, User.Read.All |
|
|
61
|
+
|
|
62
|
+
</TabItem>
|
|
63
|
+
</Tabs>
|
|
64
|
+
|
|
44
65
|
## Examples
|
|
45
66
|
|
|
46
67
|
Promote a single user to Owner of the given Microsoft 365 Group
|
|
@@ -37,6 +37,25 @@ m365 entra roledefinition add [options]
|
|
|
37
37
|
|
|
38
38
|
Use the `m365 entra rolepermission list --resourceNamespace microsoft.directory` command to get a list of available resource actions.
|
|
39
39
|
|
|
40
|
+
## Permissions
|
|
41
|
+
|
|
42
|
+
<Tabs>
|
|
43
|
+
<TabItem value="Delegated">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|------------------------------------|
|
|
47
|
+
| Microsoft Graph | RoleManagement.ReadWrite.Directory |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
<TabItem value="Application">
|
|
51
|
+
|
|
52
|
+
| Resource | Permissions |
|
|
53
|
+
|-----------------|------------------------------------|
|
|
54
|
+
| Microsoft Graph | RoleManagement.ReadWrite.Directory |
|
|
55
|
+
|
|
56
|
+
</TabItem>
|
|
57
|
+
</Tabs>
|
|
58
|
+
|
|
40
59
|
## Examples
|
|
41
60
|
|
|
42
61
|
Create a custom Microsoft Entra ID role
|
|
@@ -27,6 +27,25 @@ m365 entra roledefinition get [options]
|
|
|
27
27
|
|
|
28
28
|
<Global />
|
|
29
29
|
|
|
30
|
+
## Permissions
|
|
31
|
+
|
|
32
|
+
<Tabs>
|
|
33
|
+
<TabItem value="Delegated">
|
|
34
|
+
|
|
35
|
+
| Resource | Permissions |
|
|
36
|
+
|-----------------|-------------------------------|
|
|
37
|
+
| Microsoft Graph | RoleManagement.Read.Directory |
|
|
38
|
+
|
|
39
|
+
</TabItem>
|
|
40
|
+
<TabItem value="Application">
|
|
41
|
+
|
|
42
|
+
| Resource | Permissions |
|
|
43
|
+
|-----------------|-------------------------------|
|
|
44
|
+
| Microsoft Graph | RoleManagement.Read.Directory |
|
|
45
|
+
|
|
46
|
+
</TabItem>
|
|
47
|
+
</Tabs>
|
|
48
|
+
|
|
30
49
|
## Examples
|
|
31
50
|
|
|
32
51
|
Get info about a role specified by the id
|
|
@@ -24,6 +24,25 @@ m365 entra roledefinition list [options]
|
|
|
24
24
|
|
|
25
25
|
<Global />
|
|
26
26
|
|
|
27
|
+
## Permissions
|
|
28
|
+
|
|
29
|
+
<Tabs>
|
|
30
|
+
<TabItem value="Delegated">
|
|
31
|
+
|
|
32
|
+
| Resource | Permissions |
|
|
33
|
+
|-----------------|-------------------------------|
|
|
34
|
+
| Microsoft Graph | RoleManagement.Read.Directory |
|
|
35
|
+
|
|
36
|
+
</TabItem>
|
|
37
|
+
<TabItem value="Application">
|
|
38
|
+
|
|
39
|
+
| Resource | Permissions |
|
|
40
|
+
|-----------------|-------------------------------|
|
|
41
|
+
| Microsoft Graph | RoleManagement.Read.Directory |
|
|
42
|
+
|
|
43
|
+
</TabItem>
|
|
44
|
+
</Tabs>
|
|
45
|
+
|
|
27
46
|
## Examples
|
|
28
47
|
|
|
29
48
|
Retrieve all Microsoft Entra ID role definitions
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# entra roledefinition remove
|
|
4
6
|
|
|
@@ -33,6 +35,25 @@ When the role definition is removed, all the associated role assignments are del
|
|
|
33
35
|
|
|
34
36
|
:::
|
|
35
37
|
|
|
38
|
+
## Permissions
|
|
39
|
+
|
|
40
|
+
<Tabs>
|
|
41
|
+
<TabItem value="Delegated">
|
|
42
|
+
|
|
43
|
+
| Resource | Permissions |
|
|
44
|
+
|-----------------|------------------------------------|
|
|
45
|
+
| Microsoft Graph | RoleManagement.ReadWrite.Directory |
|
|
46
|
+
|
|
47
|
+
</TabItem>
|
|
48
|
+
<TabItem value="Application">
|
|
49
|
+
|
|
50
|
+
| Resource | Permissions |
|
|
51
|
+
|-----------------|------------------------------------|
|
|
52
|
+
| Microsoft Graph | RoleManagement.ReadWrite.Directory |
|
|
53
|
+
|
|
54
|
+
</TabItem>
|
|
55
|
+
</Tabs>
|
|
56
|
+
|
|
36
57
|
## Examples
|
|
37
58
|
|
|
38
59
|
Remove a role definition specified by id without prompting
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# entra roledefinition set
|
|
4
6
|
|
|
@@ -41,6 +43,25 @@ m365 entra roledefinition set [options]
|
|
|
41
43
|
|
|
42
44
|
Use the `m365 entra rolepermission list --resourceNamespace microsoft.directory` command to get a list of available resource actions.
|
|
43
45
|
|
|
46
|
+
## Permissions
|
|
47
|
+
|
|
48
|
+
<Tabs>
|
|
49
|
+
<TabItem value="Delegated">
|
|
50
|
+
|
|
51
|
+
| Resource | Permissions |
|
|
52
|
+
|-----------------|------------------------------------|
|
|
53
|
+
| Microsoft Graph | RoleManagement.ReadWrite.Directory |
|
|
54
|
+
|
|
55
|
+
</TabItem>
|
|
56
|
+
<TabItem value="Application">
|
|
57
|
+
|
|
58
|
+
| Resource | Permissions |
|
|
59
|
+
|-----------------|------------------------------------|
|
|
60
|
+
| Microsoft Graph | RoleManagement.ReadWrite.Directory |
|
|
61
|
+
|
|
62
|
+
</TabItem>
|
|
63
|
+
</Tabs>
|
|
64
|
+
|
|
44
65
|
## Examples
|
|
45
66
|
|
|
46
67
|
Update a custom Microsoft Entra ID role specified by the id
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# entra siteclassification disable
|
|
4
6
|
|
|
@@ -19,6 +21,25 @@ m365 entra siteclassification disable [options]
|
|
|
19
21
|
|
|
20
22
|
<Global />
|
|
21
23
|
|
|
24
|
+
## Permissions
|
|
25
|
+
|
|
26
|
+
<Tabs>
|
|
27
|
+
<TabItem value="Delegated">
|
|
28
|
+
|
|
29
|
+
| Resource | Permissions |
|
|
30
|
+
|-----------------|-----------------------------|
|
|
31
|
+
| Microsoft Graph | GroupSettings.ReadWrite.All |
|
|
32
|
+
|
|
33
|
+
</TabItem>
|
|
34
|
+
<TabItem value="Application">
|
|
35
|
+
|
|
36
|
+
| Resource | Permissions |
|
|
37
|
+
|-----------------|-----------------------------|
|
|
38
|
+
| Microsoft Graph | GroupSettings.ReadWrite.All |
|
|
39
|
+
|
|
40
|
+
</TabItem>
|
|
41
|
+
</Tabs>
|
|
42
|
+
|
|
22
43
|
## Examples
|
|
23
44
|
|
|
24
45
|
Disable site classification.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# entra siteclassification enable
|
|
4
6
|
|
|
@@ -28,6 +30,25 @@ m365 entra siteclassification enable [options]
|
|
|
28
30
|
|
|
29
31
|
<Global />
|
|
30
32
|
|
|
33
|
+
## Permissions
|
|
34
|
+
|
|
35
|
+
<Tabs>
|
|
36
|
+
<TabItem value="Delegated">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|-----------------------------|
|
|
40
|
+
| Microsoft Graph | GroupSettings.ReadWrite.All |
|
|
41
|
+
|
|
42
|
+
</TabItem>
|
|
43
|
+
<TabItem value="Application">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|-----------------------------|
|
|
47
|
+
| Microsoft Graph | GroupSettings.ReadWrite.All |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
</Tabs>
|
|
51
|
+
|
|
31
52
|
## Examples
|
|
32
53
|
|
|
33
54
|
Enable site classification.
|
|
@@ -16,6 +16,25 @@ m365 entra siteclassification get [options]
|
|
|
16
16
|
|
|
17
17
|
<Global />
|
|
18
18
|
|
|
19
|
+
## Permissions
|
|
20
|
+
|
|
21
|
+
<Tabs>
|
|
22
|
+
<TabItem value="Delegated">
|
|
23
|
+
|
|
24
|
+
| Resource | Permissions |
|
|
25
|
+
|-----------------|------------------------|
|
|
26
|
+
| Microsoft Graph | GroupSettings.Read.All |
|
|
27
|
+
|
|
28
|
+
</TabItem>
|
|
29
|
+
<TabItem value="Application">
|
|
30
|
+
|
|
31
|
+
| Resource | Permissions |
|
|
32
|
+
|-----------------|------------------------|
|
|
33
|
+
| Microsoft Graph | GroupSettings.Read.All |
|
|
34
|
+
|
|
35
|
+
</TabItem>
|
|
36
|
+
</Tabs>
|
|
37
|
+
|
|
19
38
|
## Examples
|
|
20
39
|
|
|
21
40
|
Get information about the Microsoft 365 Tenant site classification.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# entra siteclassification set
|
|
4
6
|
|
|
@@ -28,6 +30,24 @@ m365 entra siteclassification set [options]
|
|
|
28
30
|
|
|
29
31
|
<Global />
|
|
30
32
|
|
|
33
|
+
## Permissions
|
|
34
|
+
|
|
35
|
+
<Tabs>
|
|
36
|
+
<TabItem value="Delegated">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|-----------------------------|
|
|
40
|
+
| Microsoft Graph | GroupSettings.ReadWrite.All |
|
|
41
|
+
|
|
42
|
+
</TabItem>
|
|
43
|
+
<TabItem value="Application">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|-----------------------------|
|
|
47
|
+
| Microsoft Graph | GroupSettings.ReadWrite.All |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
</Tabs>
|
|
31
51
|
|
|
32
52
|
## Examples
|
|
33
53
|
|
|
@@ -30,6 +30,25 @@ m365 entra user groupmembership list [options]
|
|
|
30
30
|
|
|
31
31
|
<Global />
|
|
32
32
|
|
|
33
|
+
## Permissions
|
|
34
|
+
|
|
35
|
+
<Tabs>
|
|
36
|
+
<TabItem value="Delegated">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|------------------------------------------|
|
|
40
|
+
| Microsoft Graph | User.ReadBasic.All, GroupMember.Read.All |
|
|
41
|
+
|
|
42
|
+
</TabItem>
|
|
43
|
+
<TabItem value="Application">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|------------------------------------------|
|
|
47
|
+
| Microsoft Graph | User.ReadBasic.All, GroupMember.Read.All |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
</Tabs>
|
|
51
|
+
|
|
33
52
|
## Examples
|
|
34
53
|
|
|
35
54
|
Retrieves groups that the user is a member of
|
|
@@ -39,6 +39,25 @@ m365 entra user guest add [options]
|
|
|
39
39
|
|
|
40
40
|
<Global />
|
|
41
41
|
|
|
42
|
+
## Permissions
|
|
43
|
+
|
|
44
|
+
<Tabs>
|
|
45
|
+
<TabItem value="Delegated">
|
|
46
|
+
|
|
47
|
+
| Resource | Permissions |
|
|
48
|
+
|-----------------|-----------------|
|
|
49
|
+
| Microsoft Graph | User.Invite.All |
|
|
50
|
+
|
|
51
|
+
</TabItem>
|
|
52
|
+
<TabItem value="Application">
|
|
53
|
+
|
|
54
|
+
| Resource | Permissions |
|
|
55
|
+
|-----------------|-----------------|
|
|
56
|
+
| Microsoft Graph | User.Invite.All |
|
|
57
|
+
|
|
58
|
+
</TabItem>
|
|
59
|
+
</Tabs>
|
|
60
|
+
|
|
42
61
|
## Examples
|
|
43
62
|
|
|
44
63
|
Invite a user via email and set the display name.
|
|
@@ -35,6 +35,25 @@ The user must have a `usageLocation` value in order to assign a license to it.
|
|
|
35
35
|
|
|
36
36
|
:::
|
|
37
37
|
|
|
38
|
+
## Permissions
|
|
39
|
+
|
|
40
|
+
<Tabs>
|
|
41
|
+
<TabItem value="Delegated">
|
|
42
|
+
|
|
43
|
+
| Resource | Permissions |
|
|
44
|
+
|-----------------|---------------------------------|
|
|
45
|
+
| Microsoft Graph | LicenseAssignment.ReadWrite.All |
|
|
46
|
+
|
|
47
|
+
</TabItem>
|
|
48
|
+
<TabItem value="Application">
|
|
49
|
+
|
|
50
|
+
| Resource | Permissions |
|
|
51
|
+
|-----------------|---------------------------------|
|
|
52
|
+
| Microsoft Graph | LicenseAssignment.ReadWrite.All |
|
|
53
|
+
|
|
54
|
+
</TabItem>
|
|
55
|
+
</Tabs>
|
|
56
|
+
|
|
38
57
|
## Examples
|
|
39
58
|
|
|
40
59
|
Assign specific licenses to a specific user by UPN.
|
|
@@ -28,10 +28,27 @@ m365 entra user license list [options]
|
|
|
28
28
|
|
|
29
29
|
:::tip
|
|
30
30
|
|
|
31
|
-
If you don't specify any option, the command will list the license details of the current logged in user.
|
|
31
|
+
If you don't specify any option, the command will list the license details of the current logged in user.
|
|
32
32
|
|
|
33
33
|
:::
|
|
34
34
|
|
|
35
|
+
## Permissions
|
|
36
|
+
|
|
37
|
+
<Tabs>
|
|
38
|
+
<TabItem value="Delegated">
|
|
39
|
+
|
|
40
|
+
| Resource | Permissions |
|
|
41
|
+
|-----------------|----------------------------|
|
|
42
|
+
| Microsoft Graph | LicenseAssignment.Read.All |
|
|
43
|
+
|
|
44
|
+
</TabItem>
|
|
45
|
+
<TabItem value="Application">
|
|
46
|
+
|
|
47
|
+
This command does not support application permissions.
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
</Tabs>
|
|
51
|
+
|
|
35
52
|
## Examples
|
|
36
53
|
|
|
37
54
|
List license details of the current logged in user.
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Global from '../../_global.mdx';
|
|
2
|
+
import Tabs from '@theme/Tabs';
|
|
3
|
+
import TabItem from '@theme/TabItem';
|
|
2
4
|
|
|
3
5
|
# entra user license remove
|
|
4
6
|
|
|
@@ -28,6 +30,25 @@ m365 entra user license remove [options]
|
|
|
28
30
|
|
|
29
31
|
<Global />
|
|
30
32
|
|
|
33
|
+
## Permissions
|
|
34
|
+
|
|
35
|
+
<Tabs>
|
|
36
|
+
<TabItem value="Delegated">
|
|
37
|
+
|
|
38
|
+
| Resource | Permissions |
|
|
39
|
+
|-----------------|---------------------------------|
|
|
40
|
+
| Microsoft Graph | LicenseAssignment.ReadWrite.All |
|
|
41
|
+
|
|
42
|
+
</TabItem>
|
|
43
|
+
<TabItem value="Application">
|
|
44
|
+
|
|
45
|
+
| Resource | Permissions |
|
|
46
|
+
|-----------------|---------------------------------|
|
|
47
|
+
| Microsoft Graph | LicenseAssignment.ReadWrite.All |
|
|
48
|
+
|
|
49
|
+
</TabItem>
|
|
50
|
+
</Tabs>
|
|
51
|
+
|
|
31
52
|
## Examples
|
|
32
53
|
|
|
33
54
|
Remove specific licenses from a specific user by UPN.
|