@pnp/cli-microsoft365 5.1.0 → 5.2.0-beta.4df87d9

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.
Files changed (35) hide show
  1. package/.eslintrc.js +1 -0
  2. package/.mocharc.json +1 -0
  3. package/dist/Auth.js +2 -1
  4. package/dist/Command.js +10 -1
  5. package/dist/cli/Cli.js +2 -18
  6. package/dist/m365/app/commands/app-get.js +3 -0
  7. package/dist/m365/cli/commands/cli-reconsent.js +20 -2
  8. package/dist/m365/cli/commands/config/config-set.js +1 -0
  9. package/dist/m365/pp/commands/environment/environment-list.js +57 -0
  10. package/dist/m365/pp/commands.js +1 -0
  11. package/dist/m365/spfx/commands/project/project-upgrade.js +4 -1
  12. package/dist/m365/spo/commands/file/file-checkout.js +2 -2
  13. package/dist/m365/spo/commands/site/site-remove.js +4 -3
  14. package/dist/m365/spo/commands/tenant/tenant-recyclebinitem-restore.js +10 -44
  15. package/dist/m365/spo/commands/tenant/tenant-settings-set.js +21 -0
  16. package/dist/m365/teams/commands/channel/channel-add.js +44 -14
  17. package/dist/m365/teams/commands/channel/channel-list.js +11 -1
  18. package/dist/m365/teams/commands/channel/channel-member-set.js +203 -0
  19. package/dist/m365/teams/commands/channel/channel-membership-list.js +150 -0
  20. package/dist/m365/teams/commands/chat/chat-get.js +143 -0
  21. package/dist/m365/teams/commands/chat/chat-message-send.js +5 -30
  22. package/dist/m365/teams/commands/chat/chatUtil.js +62 -0
  23. package/dist/m365/teams/commands.js +3 -0
  24. package/dist/settingsNames.js +1 -0
  25. package/dist/utils/index.js +1 -0
  26. package/dist/utils/md.js +81 -0
  27. package/docs/docs/cmd/pp/environment/environment-list.md +37 -0
  28. package/docs/docs/cmd/spo/tenant/tenant-settings-set.md +52 -33
  29. package/docs/docs/cmd/teams/channel/channel-add.md +18 -0
  30. package/docs/docs/cmd/teams/channel/channel-list.md +11 -2
  31. package/docs/docs/cmd/teams/channel/channel-member-set.md +51 -0
  32. package/docs/docs/cmd/teams/channel/channel-membership-list.md +48 -0
  33. package/docs/docs/cmd/teams/chat/chat-get.md +53 -0
  34. package/npm-shrinkwrap.json +24 -738
  35. package/package.json +3 -4
@@ -0,0 +1,81 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.md = void 0;
4
+ const fs = require("fs");
5
+ const os_1 = require("os");
6
+ const path = require("path");
7
+ function convertTitle(md) {
8
+ return md.replace(/^#\s+(.*)/gm, (match, title) => {
9
+ return title.toLocaleUpperCase() + os_1.EOL + Array(title.length + 1).join('=');
10
+ });
11
+ }
12
+ function convertHeadings(md) {
13
+ return md.replace(/^(#+)\s+(.*)/gm, (match, level, content) => {
14
+ return `${os_1.EOL}${content.toLocaleUpperCase()}`;
15
+ });
16
+ }
17
+ function convertAdmonitions(md) {
18
+ const regex = new RegExp('^!!!\\s(.*)' + os_1.EOL + '\\s+', 'gm');
19
+ return md.replace(regex, (match, content) => {
20
+ return content.toLocaleUpperCase() + os_1.EOL + os_1.EOL;
21
+ });
22
+ }
23
+ function includeContent(md, rootFolder) {
24
+ return md.replace(/^--8<-- "([^"]+)"/gm, (match, filePath) => {
25
+ return fs.readFileSync(path.join(rootFolder, filePath), 'utf8');
26
+ });
27
+ }
28
+ function convertDd(md) {
29
+ return md.replace(/^:\s(.*)/gm, (match, content) => {
30
+ return ` ${content}`;
31
+ });
32
+ }
33
+ function convertHyperlinks(md) {
34
+ return md.replace(/\[([^\]]+)\]\(([^\)]+)\)/gm, (match, label, url) => {
35
+ // if the link is the same as the content, return just the link
36
+ if (label === url) {
37
+ return url;
38
+ }
39
+ // if the link is relative, remove it because there's no way to open it
40
+ // from the terminal anyway. In the future, we could convert it to the
41
+ // actual link of the docs.
42
+ if (!url.startsWith('http:') && !url.startsWith('https:')) {
43
+ return label;
44
+ }
45
+ return `${label} (${url})`;
46
+ });
47
+ }
48
+ function convertCodeFences(md) {
49
+ const regex = new RegExp('^```.*?' + os_1.EOL + '(.*?)```' + os_1.EOL, 'gms');
50
+ return md.replace(regex, (match, code) => {
51
+ return ` ${code}${os_1.EOL}`;
52
+ });
53
+ }
54
+ function removeInlineMarkup(md) {
55
+ // from https://stackoverflow.com/a/70064453
56
+ return md.replace(/(?<marks>[`]|\*{1,3}|_{1,3}|~{2})(?<inmarks>.*?)\1/g, '$<inmarks>$<link_text>');
57
+ }
58
+ function removeTooManyEmptyLines(md) {
59
+ const regex = new RegExp('(' + os_1.EOL + '){4,}', 'g');
60
+ return md.replace(regex, Array(4).join(os_1.EOL));
61
+ }
62
+ const convertFunctions = [
63
+ convertTitle,
64
+ convertHeadings,
65
+ convertAdmonitions,
66
+ convertDd,
67
+ convertHyperlinks,
68
+ convertCodeFences,
69
+ removeInlineMarkup,
70
+ removeTooManyEmptyLines
71
+ ];
72
+ exports.md = {
73
+ md2plain(md, rootFolderDocs) {
74
+ md = includeContent(md, rootFolderDocs);
75
+ convertFunctions.forEach(convert => {
76
+ md = convert(md);
77
+ });
78
+ return md;
79
+ }
80
+ };
81
+ //# sourceMappingURL=md.js.map
@@ -0,0 +1,37 @@
1
+ # pp environment list
2
+
3
+ Lists Microsoft Power Platform environments
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 pp environment list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-a, --asAdmin [teamId]`
14
+ Run the command as admin and retrieve all environments. Lists only environments you have explicitly are assigned permissions to by default.
15
+
16
+ --8<-- "docs/cmd/_global.md"
17
+
18
+ ## Remarks
19
+
20
+ !!! attention
21
+ This command is based on an API that is currently in preview and is subject to change once the API reached general availability.
22
+ Register CLI for Microsoft 365 or Azure AD application as a management application for the Power Platform using
23
+ m365 pp managementapp add [options]
24
+
25
+ ## Examples
26
+
27
+ List Microsoft Power Platform environments
28
+
29
+ ```sh
30
+ m365 pp environment list
31
+ ```
32
+
33
+ List all Microsoft Power Platform environments
34
+
35
+ ```sh
36
+ m365 pp environment list --asAdmin
37
+ ```
@@ -13,34 +13,34 @@ m365 spo tenant settings set [options]
13
13
  --8<-- "docs/cmd/_global.md"
14
14
 
15
15
  `--MinCompatibilityLevel [MinCompatibilityLevel]`
16
- : Specifies the lower bound on the compatibility level for new sites'
16
+ : Specifies the lower bound on the compatibility level for new sites
17
17
 
18
18
  `--MaxCompatibilityLevel [MaxCompatibilityLevel]`
19
- : Specifies the upper bound on the compatibility level for new sites'
19
+ : Specifies the upper bound on the compatibility level for new sites
20
20
 
21
21
  `--ExternalServicesEnabled [ExternalServicesEnabled]`
22
22
  : Enables external services for a tenant. External services are defined as services that are not in the Microsoft 365 datacenters. Allowed values `true,false`
23
23
 
24
24
  `--NoAccessRedirectUrl [NoAccessRedirectUrl]`
25
- : Specifies the URL of the redirected site for those site collections which have the locked state "NoAccess"'
25
+ : Specifies the URL of the redirected site for those site collections which have the locked state "NoAccess"
26
26
 
27
27
  `--SharingCapability [SharingCapability]`
28
- : Determines what level of sharing is available for the site. The valid values are: ExternalUserAndGuestSharing (default) - External user sharing (share by email) and guest link sharing are both enabled. Disabled - External user sharing (share by email) and guest link sharing are both disabled. ExternalUserSharingOnly - External user sharing (share by email) is enabled, but guest link sharing is disabled. Allowed values Disabled,ExternalUserSharingOnly,ExternalUserAndGuestSharing,ExistingExternalUserSharingOnly
28
+ : Determines what level of sharing is available for the site. The valid values are: ExternalUserAndGuestSharing (default) - External user sharing (share by email) and guest link sharing are both enabled. Disabled - External user sharing (share by email) and guest link sharing are both disabled. ExternalUserSharingOnly - External user sharing (share by email) is enabled, but guest link sharing is disabled. Allowed values `Disabled,ExternalUserSharingOnly,ExternalUserAndGuestSharing,ExistingExternalUserSharingOnly`
29
29
 
30
30
  `--DisplayStartASiteOption [DisplayStartASiteOption]`
31
31
  : Determines whether tenant users see the Start a Site menu option. Allowed values `true,false`
32
32
 
33
33
  `--StartASiteFormUrl [StartASiteFormUrl]`
34
- : Specifies URL of the form to load in the Start a Site dialog. The valid values are: "" (default) - Blank by default, this will also remove or clear any value that has been set. Full URL - Example:"https://contoso.sharepoint.com/path/to/form"'
34
+ : Specifies URL of the form to load in the Start a Site dialog. The valid values are: "" (default) - Blank by default, this will also remove or clear any value that has been set. Full URL - Example:"https://contoso.sharepoint.com/path/to/form"
35
35
 
36
36
  `--ShowEveryoneClaim [ShowEveryoneClaim]`
37
37
  : Enables the administrator to hide the Everyone claim in the People Picker. When users share an item with Everyone, it is accessible to all authenticated users in the tenant\'s Azure Active Directory, including any active external users who have previously accepted invitations. Note, that some SharePoint system resources such as templates and pages are required to be shared to Everyone and this type of sharing does not expose any user data or metadata. Allowed values `true,false`
38
38
 
39
39
  `--ShowAllUsersClaim [ShowAllUsersClaim]`
40
- : Enables the administrator to hide the All Users claim groups in People Picker. When users share an item with "All Users (x)", it is accessible to all organization members in the tenant\'s Azure Active Directory who have authenticated with via this method. When users share an item with "All Users (x)" it is accessible to all organtization members in the tenant that used NTLM to authentication with SharePoint. Allowed values `true,false`
40
+ : Enables the administrator to hide the All Users claim groups in People Picker. When users share an item with "All Users (x)", it is accessible to all organization members in the tenant\'s Azure Active Directory who have authenticated with via this method. When users share an item with "All Users (x)" it is accessible to all organization members in the tenant that used NTLM to authentication with SharePoint. Allowed values `true,false`
41
41
 
42
42
  `--ShowEveryoneExceptExternalUsersClaim [ShowEveryoneExceptExternalUsersClaim]`
43
- : Enables the administrator to hide the "Everyone except external users" claim in the People Picker. When users share an item with "Everyone except external users", it is accessible to all organization members in the tenant\'s Azure Active Directory, but not to any users who have previously accepted invitations. Allowed values `true,false`
43
+ : Enables the administrator to hide the "Everyone except external users" claim in the People Picker. When users share an item with "Everyone except external users", it is accessible to all organization members in the tenant's Azure Active Directory, but not to any users who have previously accepted invitations. Allowed values `true,false`
44
44
 
45
45
  `--SearchResolveExactEmailOrUPN [SearchResolveExactEmailOrUPN]`
46
46
  : Removes the search capability from People Picker. Note, recently resolved names will still appear in the list until browser cache is cleared or expired. SharePoint Administrators will still be able to use starts with or partial name matching when enabled. Allowed values `true,false`
@@ -49,7 +49,7 @@ m365 spo tenant settings set [options]
49
49
  : When set to true this will disable the ability to use Modern Authentication that leverages ADAL across the tenant. Allowed values `true,false`
50
50
 
51
51
  `--LegacyAuthProtocolsEnabled [LegacyAuthProtocolsEnabled]`
52
- : By default this value is set to true. Setting this parameter prevents Office clients using non-modern authentication protocols from accessing SharePoint Online resources. A value of true - Enables Office clients using non-modern authentication protocols(such as, Forms-Based Authentication (FBA) or Identity Client Runtime Library (IDCRL)) to access SharePoint resources. Allowed values `true,false`
52
+ : By default this value is set to true. Setting this parameter prevents Office clients using non-modern authentication protocols from accessing SharePoint Online resources. A value of true - Enables Office clients using non-modern authentication protocols (such as, Forms-Based Authentication (FBA) or Identity Client Runtime Library (IDCRL)) to access SharePoint resources. Allowed values `true,false`
53
53
 
54
54
  `--RequireAcceptingAccountMatchInvitedAccount [RequireAcceptingAccountMatchInvitedAccount]`
55
55
  : Ensures that an external user can only accept an external sharing invitation with an account matching the invited email address. Administrators who desire increased control over external collaborators should consider enabling this feature. Allowed values `true,false`
@@ -58,7 +58,7 @@ m365 spo tenant settings set [options]
58
58
  : Creates a Shared with Everyone folder in every user\'s new OneDrive for Business document library. The valid values are: True (default) - The Shared with Everyone folder is created. False - No folder is created when the site and OneDrive for Business document library is created. Allowed values `true,false`
59
59
 
60
60
  `--SignInAccelerationDomain [SignInAccelerationDomain]`
61
- : Specifies the home realm discovery value to be sent to Azure Active Directory (AAD) during the user sign-in process. When the organization uses a third-party identity provider, this prevents the user from seeing the Azure Active Directory Home Realm Discovery web page and ensures the user only sees their company\'s Identity Provider\'s portal. This value can also be used with Azure Active Directory Premium to customize the Azure Active Directory login page. Acceleration will not occur on site collections that are shared externally. This value should be configured with the login domain that is used by your company (that is, example@contoso.com). If your company has multiple third-party identity providers, configuring the sign-in acceleration value will break sign-in for your organization. The valid values are: "" (default) - Blank by default, this will also remove or clear any value that has been set. Login Domain - For example: "contoso.com". No value assigned by default'
61
+ : Specifies the home realm discovery value to be sent to Azure Active Directory (AAD) during the user sign-in process. When the organization uses a third-party identity provider, this prevents the user from seeing the Azure Active Directory Home Realm Discovery web page and ensures the user only sees their company's Identity Provider's portal. This value can also be used with Azure Active Directory Premium to customize the Azure Active Directory login page. Acceleration will not occur on site collections that are shared externally. This value should be configured with the login domain that is used by your company (that is, example@contoso.com). If your company has multiple third-party identity providers, configuring the sign-in acceleration value will break sign-in for your organization. The valid values are: "" (default) - Blank by default, this will also remove or clear any value that has been set. Login Domain - For example: "contoso.com". No value assigned by default
62
62
 
63
63
  `--EnableGuestSignInAcceleration [EnableGuestSignInAcceleration]`
64
64
  : Accelerates guest-enabled site collections as well as member-only site collections when the SignInAccelerationDomain parameter is set. Allowed values `true,false`
@@ -70,7 +70,7 @@ m365 spo tenant settings set [options]
70
70
  : When the feature is enabled, all external sharing invitations that are sent will blind copy the e-mail messages listed in the BccExternalSharingsInvitationList. Allowed values `true,false`
71
71
 
72
72
  `--BccExternalSharingInvitationsList [BccExternalSharingInvitationsList]`
73
- : Specifies a list of e-mail addresses to be BCC\'d when the BCC for External Sharing feature is enabled. Multiple addresses can be specified by creating a comma separated list with no spaces'
73
+ : Specifies a list of e-mail addresses to be BCC'd when the BCC for External Sharing feature is enabled. Multiple addresses can be specified by creating a comma separated list with no spaces
74
74
 
75
75
  `--UserVoiceForFeedbackEnabled [UserVoiceForFeedbackEnabled]`
76
76
  : Enables or disables the User Voice Feedback button. Allowed values `true,false`
@@ -79,22 +79,22 @@ m365 spo tenant settings set [options]
79
79
  : Enables or disables the publish CDN. Allowed values `true,false`
80
80
 
81
81
  `--PublicCdnAllowedFileTypes [PublicCdnAllowedFileTypes]`
82
- : Sets public CDN allowed file types'
82
+ : Sets public CDN allowed file types
83
83
 
84
84
  `--RequireAnonymousLinksExpireInDays [RequireAnonymousLinksExpireInDays]`
85
- : Specifies all anonymous links that have been created (or will be created) will expire after the set number of days. To remove the expiration requirement, set the value to zero (0)'
85
+ : Specifies all anonymous links that have been created (or will be created) will expire after the set number of days. To remove the expiration requirement, set the value to zero (0)
86
86
 
87
87
  `--SharingAllowedDomainList [SharingAllowedDomainList]`
88
- : Specifies a list of email domains that is allowed for sharing with the external collaborators. Use the space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com"'
88
+ : Specifies a list of email domains that is allowed for sharing with the external collaborators. Use the space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com"
89
89
 
90
90
  `--SharingBlockedDomainList [SharingBlockedDomainList]`
91
- : Specifies a list of email domains that is blocked or prohibited for sharing with the external collaborators. Use space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com"'
91
+ : Specifies a list of email domains that is blocked or prohibited for sharing with the external collaborators. Use space character as the delimiter for entering multiple values. For example, "contoso.com fabrikam.com"
92
92
 
93
93
  `--SharingDomainRestrictionMode [SharingDomainRestrictionMode]`
94
- : Specifies the external sharing mode for domains. Allowed values None,AllowList,BlockList
94
+ : Specifies the external sharing mode for domains. Allowed values `None,AllowList,BlockList`
95
95
 
96
96
  `--OneDriveStorageQuota [OneDriveStorageQuota]`
97
- : Sets a default OneDrive for Business storage quota for the tenant. It will be used for new OneDrive for Business sites created. A typical use will be to reduce the amount of storage associated with OneDrive for Business to a level below what the License entitles the users. For example, it could be used to set the quota to 10 gigabytes (GB) by default'
97
+ : Sets a default OneDrive for Business storage quota for the tenant. It will be used for new OneDrive for Business sites created. A typical use will be to reduce the amount of storage associated with OneDrive for Business to a level below what the License entitles the users. For example, it could be used to set the quota to 10 gigabytes (GB) by default
98
98
 
99
99
  `--OneDriveForGuestsEnabled [OneDriveForGuestsEnabled]`
100
100
  : Lets OneDrive for Business creation for administrator managed guest users. Administrator managed Guest users use credentials in the resource tenant to access the resources. Allowed values `true,false`
@@ -103,7 +103,7 @@ m365 spo tenant settings set [options]
103
103
  : Allows access from network locations that are defined by an administrator. The values are true and false. The default value is false which means the setting is disabled. Before the iPAddressEnforcement parameter is set, make sure you add a valid IPv4 or IPv6 address to the iPAddressAllowList parameter. Allowed values `true,false`
104
104
 
105
105
  `--IPAddressAllowList [IPAddressAllowList]`
106
- : Configures multiple IP addresses or IP address ranges (IPv4 or IPv6). Use commas to separate multiple IP addresses or IP address ranges. Verify there are no overlapping IP addresses and ensure IP ranges use Classless Inter-Domain Routing (CIDR) notation. For example, 172.16.0.0, 192.168.1.0/27. No value is assigned by default'
106
+ : Configures multiple IP addresses or IP address ranges (IPv4 or IPv6). Use commas to separate multiple IP addresses or IP address ranges. Verify there are no overlapping IP addresses and ensure IP ranges use Classless Inter-Domain Routing (CIDR) notation. For example, `172.16.0.0, 192.168.1.0/27`. No value is assigned by default
107
107
 
108
108
  `--IPAddressWACTokenLifetime [IPAddressWACTokenLifetime]`
109
109
  : Sets IP Address WAC token lifetime'
@@ -112,13 +112,13 @@ m365 spo tenant settings set [options]
112
112
  : Sets use find people in PeoplePicker to true or false. Note: When set to true, users aren\'t able to share with security groups or SharePoint groups. Allowed values `true,false`
113
113
 
114
114
  `--DefaultSharingLinkType [DefaultSharingLinkType]`
115
- : Lets administrators choose what type of link appears is selected in the “Get a link” sharing dialog box in OneDrive for Business and SharePoint Online. Allowed values None,Direct,Internal,AnonymousAccess
115
+ : Lets administrators choose what type of link appears is selected in the “Get a link” sharing dialog box in OneDrive for Business and SharePoint Online. Allowed values `None,Direct,Internal,AnonymousAccess`
116
116
 
117
117
  `--ODBMembersCanShare [ODBMembersCanShare]`
118
- : Lets administrators set policy on re-sharing behavior in OneDrive for Business. Allowed values Unspecified,On,Off
118
+ : Lets administrators set policy on re-sharing behavior in OneDrive for Business. Allowed values `Unspecified,On,Off`
119
119
 
120
120
  `--ODBAccessRequests [ODBAccessRequests]`
121
- : Lets administrators set policy on access requests and requests to share in OneDrive for Business. Allowed values Unspecified,On,Off
121
+ : Lets administrators set policy on access requests and requests to share in OneDrive for Business. Allowed values `Unspecified,On,Off`
122
122
 
123
123
  `--PreventExternalUsersFromResharing [PreventExternalUsersFromResharing]`
124
124
  : Prevents external users from resharing. Allowed values `true,false`
@@ -127,16 +127,16 @@ m365 spo tenant settings set [options]
127
127
  : Shows people picker suggestions for guest users. Allowed values `true,false`
128
128
 
129
129
  `--FileAnonymousLinkType [FileAnonymousLinkType]`
130
- : Sets the file anonymous link type to None, View or Edit
130
+ : Sets the file anonymous link type to `None`, `View` or `Edit`
131
131
 
132
132
  `--FolderAnonymousLinkType [FolderAnonymousLinkType]`
133
- : Sets the folder anonymous link type to None, View or Edit
133
+ : Sets the folder anonymous link type to `None`, `View` or `Edit`
134
134
 
135
135
  `--NotifyOwnersWhenItemsReshared [NotifyOwnersWhenItemsReshared]`
136
- : When this parameter is set to true and another user re-shares a document from a user\'s OneDrive for Business, the OneDrive for Business owner is notified by email. For additional information about how to configure notifications for external sharing, see Configure notifications for external sharing for OneDrive for Business. Allowed values `true,false`
136
+ : When this parameter is set to true and another user re-shares a document from a user's OneDrive for Business, the OneDrive for Business owner is notified by email. For additional information about how to configure notifications for external sharing, see Configure notifications for external sharing for OneDrive for Business. Allowed values `true,false`
137
137
 
138
138
  `--NotifyOwnersWhenInvitationsAccepted [NotifyOwnersWhenInvitationsAccepted]`
139
- : When this parameter is set to true and when an external user accepts an invitation to a resource in a user\'s OneDrive for Business, the OneDrive for Business owner is notified by email. For additional information about how to configure notifications for external sharing, see Configure notifications for external sharing for OneDrive for Business. Allowed values `true,false`
139
+ : When this parameter is set to true and when an external user accepts an invitation to a resource in a user's OneDrive for Business, the OneDrive for Business owner is notified by email. For additional information about how to configure notifications for external sharing, see Configure notifications for external sharing for OneDrive for Business. Allowed values `true,false`
140
140
 
141
141
  `--NotificationsInOneDriveForBusinessEnabled [NotificationsInOneDriveForBusinessEnabled]`
142
142
  : Enables or disables notifications in OneDrive for business. Allowed values `true,false`
@@ -154,16 +154,16 @@ m365 spo tenant settings set [options]
154
154
  : Enables or disables social bar on site pages. Allowed values `true,false`
155
155
 
156
156
  `--OrphanedPersonalSitesRetentionPeriod [OrphanedPersonalSitesRetentionPeriod]`
157
- : Specifies the number of days after a user\'s Active Directory account is deleted that their OneDrive for Business content will be deleted. The value range is in days, between 30 and 3650. The default value is 30'
157
+ : Specifies the number of days after a user's Active Directory account is deleted that their OneDrive for Business content will be deleted. The value range is in days, between 30 and 3650. The default value is 30
158
158
 
159
159
  `--DisallowInfectedFileDownload [DisallowInfectedFileDownload]`
160
160
  : Prevents the Download button from being displayed on the Virus Found warning page. Allowed values `true,false`
161
161
 
162
162
  `--DefaultLinkPermission [DefaultLinkPermission]`
163
- : Choose the dafault permission that is selected when users share. This applies to anonymous access, internal and direct links. Allowed values None,View,Edit
163
+ : Choose the dafault permission that is selected when users share. This applies to anonymous access, internal and direct links. Allowed values `None,View,Edit`
164
164
 
165
165
  `--ConditionalAccessPolicy [ConditionalAccessPolicy]`
166
- : Configures conditional access policy. Allowed values AllowFullAccess,AllowLimitedAccess,BlockAccess
166
+ : Configures conditional access policy. Allowed values `AllowFullAccess,AllowLimitedAccess,BlockAccess`
167
167
 
168
168
  `--AllowDownloadingNonWebViewableFiles [AllowDownloadingNonWebViewableFiles]`
169
169
  : Allows downloading non web viewable files. The Allowed values `true,false`
@@ -181,7 +181,7 @@ m365 spo tenant settings set [options]
181
181
  : Sets email attestation to required. Allowed values `true,false`
182
182
 
183
183
  `--EmailAttestationReAuthDays [EmailAttestationReAuthDays]`
184
- : Sets email attestation re-auth days'
184
+ : Sets email attestation re-auth days
185
185
 
186
186
  `--HideDefaultThemes [HideDefaultThemes]`
187
187
  : Defines if the default themes are visible or hidden. Allowed values `true,false`
@@ -223,7 +223,7 @@ m365 spo tenant settings set [options]
223
223
  : Is unmanaged sync client for tenant restricted. Allowed values `true,false`
224
224
 
225
225
  `--LimitedAccessFileType [LimitedAccessFileType]`
226
- : Allows users to preview only Office files in the browser. This option increases security but may be a barrier to user productivity. Allowed values OfficeOnlineFilesOnly,WebPreviewableFiles,OtherFiles
226
+ : Allows users to preview only Office files in the browser. This option increases security but may be a barrier to user productivity. Allowed values `OfficeOnlineFilesOnly,WebPreviewableFiles,OtherFiles`
227
227
 
228
228
  `--OptOutOfGrooveBlock [OptOutOfGrooveBlock]`
229
229
  : Opts out of the groove block. Allowed values `true,false`
@@ -241,23 +241,29 @@ m365 spo tenant settings set [options]
241
241
  : Show NGSC dialog for sync on OneDrive for Business. Allowed values `true,false`
242
242
 
243
243
  `--SpecialCharactersStateInFileFolderNames [SpecialCharactersStateInFileFolderNames]`
244
- : Sets the special characters state in file and folder names in SharePoint and OneDrive for Business. Allowed values NoPreference,Allowed,Disallowed
244
+ : Sets the special characters state in file and folder names in SharePoint and OneDrive for Business. Allowed values `NoPreference,Allowed,Disallowed`
245
245
 
246
246
  `--SyncPrivacyProfileProperties [SyncPrivacyProfileProperties]`
247
247
  : Syncs privacy profile properties. Allowed values `true,false`
248
248
 
249
249
  `--ExcludedFileExtensionsForSyncClient [ExcludedFileExtensionsForSyncClient]`
250
- : Excluded file extensions for sync client. Array of strings split by comma (\',\')'
250
+ : Excluded file extensions for sync client. Array of strings split by comma
251
251
 
252
252
  `--AllowedDomainListForSyncClient [AllowedDomainListForSyncClient]`
253
- : Sets allowed domain list for sync client. Array of GUIDs split by comma (\',\'). Example:c9b1909e-901a-0000-2cdb-e91c3f46320a,c9b1909e-901a-0000-2cdb-e91c3f463201'
253
+ : Sets allowed domain list for sync client. Array of GUIDs split by comma. Example: `c9b1909e-901a-0000-2cdb-e91c3f46320a,c9b1909e-901a-0000-2cdb-e91c3f463201`
254
254
 
255
255
  `--DisabledWebPartIds [DisabledWebPartIds]`
256
- : Sets disabled web part Ids. Array of GUIDs split by comma (\',\'). Example:c9b1909e-901a-0000-2cdb-e91c3f46320a,c9b1909e-901a-0000-2cdb-e91c3f463201'
256
+ : Sets disabled web part Ids. Array of GUIDs split by comma. Example: `c9b1909e-901a-0000-2cdb-e91c3f46320a,c9b1909e-901a-0000-2cdb-e91c3f463201`
257
257
 
258
258
  `--DisableCustomAppAuthentication [DisableCustomAppAuthentication]`
259
259
  : Configure if ACS-based app-only auth should be disabled or not. Allowed values `true,false`
260
260
 
261
+ `--EnableAzureADB2BIntegration [EnableAzureADB2BIntegration]`
262
+ : Enables the preview for OneDrive and SharePoint integration with Azure AD B2B. Allowed values `true,false`. Azure AD one-time passcode needs to be enabled for this integration to work. For more information see [http://aka.ms/spo-b2b-integration](https://aka.ms/spo-b2b-integration).
263
+
264
+ `--SyncAadB2BManagementPolicy [SyncAadB2BManagementPolicy]`
265
+ : Syncs Azure B2B Management Policies. Allowed values `true,false`. For more information, see [SharePoint and OneDrive integration with Azure AD B2B](https://aka.ms/spo-b2b-integration).
266
+
261
267
  !!! important
262
268
  To use this command you have to have permissions to access the tenant admin site.
263
269
 
@@ -274,3 +280,16 @@ Sets multiple tenant global settings at once
274
280
  ```sh
275
281
  m365 spo tenant settings set --UserVoiceForFeedbackEnabled true --HideSyncButtonOnODB true --AllowedDomainListForSyncClient c9b1909e-901a-0000-2cdb-e91c3f46320a,c9b1909e-901a-0000-2cdb-e91c3f463201
276
282
  ```
283
+
284
+ Enable Azure AD B2B integration for SharePoint and OneDrive and sync the Azure AD B2B management policies
285
+
286
+ ```sh
287
+ m365 spo tenant settings set --EnableAzureADB2BIntegration true
288
+ m365 spo tenant settings set --SyncAadB2BManagementPolicy true
289
+ ```
290
+
291
+ Disable Azure AD B2B integration for SharePoint and OneDrive
292
+
293
+ ```sh
294
+ m365 spo tenant settings set --EnableAzureADB2BIntegration false
295
+ ```
@@ -22,6 +22,12 @@ m365 teams channel add [options]
22
22
  `-d, --description [description]`
23
23
  : The description of the channel to add
24
24
 
25
+ `--type [type]`
26
+ : Type of channel to create: `standard,private`. Default `standard`.
27
+
28
+ `--owner [owner]`
29
+ : User with this ID or UPN will be added as owner of the private channel. This option is required when type is `private`.
30
+
25
31
  --8<-- "docs/cmd/_global.md"
26
32
 
27
33
  ## Remarks
@@ -41,3 +47,15 @@ Add channel to the specified Microsoft Teams team with name _Team Name_
41
47
  ```sh
42
48
  m365 teams channel add --teamName "Team Name" --name climicrosoft365 --description development
43
49
  ```
50
+
51
+ Add private channel to the specified Microsoft Teams team with owner UPN
52
+
53
+ ```sh
54
+ m365 teams channel add --teamName "Team Name" --name climicrosoft365 --type private --owner john.doe@contoso.com
55
+ ```
56
+
57
+ Add private channel to the specified Microsoft Teams team with owner ID
58
+
59
+ ```sh
60
+ m365 teams channel add --teamId 6703ac8a-c49b-4fd4-8223-28f0ac3a6402 --name climicrosoft365 --type private --owner cc693a7d-4833-4911-a89a-f0fe6e49bf69
61
+ ```
@@ -16,18 +16,27 @@ m365 teams channel list [options]
16
16
  `--teamName [teamName]`
17
17
  : The display name of the team to list the channels of. Specify either `teamId` or `teamName` but not both
18
18
 
19
+ `--type [type]`
20
+ : Filter the results to only channels of a given type: `standard, private`. By default all channels are listed.
21
+
19
22
  --8<-- "docs/cmd/_global.md"
20
23
 
21
24
  ## Examples
22
25
 
23
- List the channels in a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000
26
+ List all channels in a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000
24
27
 
25
28
  ```sh
26
29
  m365 teams channel list --teamId 00000000-0000-0000-0000-000000000000
27
30
  ```
28
31
 
29
- List the channels in a specified Microsoft Teams team with name _Team Name_
32
+ List all channels in a specified Microsoft Teams team with name _Team Name_
30
33
 
31
34
  ```sh
32
35
  m365 teams channel list --teamName "Team Name"
36
+ ```
37
+
38
+ List private channels in a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000
39
+
40
+ ```sh
41
+ m365 teams channel list --teamId 00000000-0000-0000-0000-000000000000 --type private
33
42
  ```
@@ -0,0 +1,51 @@
1
+ # teams channel member set
2
+
3
+ Updates the role of the specified member in the specified Microsoft Teams private team channel
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams channel member set [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--teamId [teamId]`
14
+ : The Id of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both
15
+
16
+ `--teamName [teamName]`
17
+ : The display name of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both
18
+
19
+ `--channelId [channelId]`
20
+ : The Id of the Microsoft Teams team channel. Specify either `channelId` or `channelName` but not both
21
+
22
+ `--channelName [channelName]`
23
+ : The display name of the Microsoft Teams team channel. Specify either `channelId` or `channelName` but not both
24
+
25
+ `--userName [userName]`
26
+ : User's UPN (user principal name, e.g. johndoe@example.com). Specify either userName, userId or id but not multiple.
27
+
28
+ `--userId [userId]`
29
+ : User's Azure AD Id. Specify either userName, userId or id but not multiple.
30
+
31
+ `--id [id]`
32
+ : Channel member Id of a user. Specify either userName, userId or id but not multiple.
33
+
34
+ `-r, --role <role>`
35
+ : The role to be assigned to the user: owner, member.
36
+
37
+ --8<-- "docs/cmd/_global.md"
38
+
39
+ ## Examples
40
+
41
+ Updates the role of the user _johndoe@example.com_ to owner in the Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
42
+
43
+ ```sh
44
+ m365 teams channel member set --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype --userName "johndoe@example.com" --role owner
45
+ ```
46
+
47
+ Updates the role of the user with id 00000000-0000-0000-0000-000000000000 to member in the Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
48
+
49
+ ```sh
50
+ m365 teams channel member set --teamName "Team Name" --channelName "Channel Name" --userId 00000000-0000-0000-0000-000000000000 --role member
51
+ ```
@@ -0,0 +1,48 @@
1
+ # teams channel membership list
2
+
3
+ Lists memberships in the specified Microsoft Teams team channel
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams channel membership list [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `--teamId [teamId]`
14
+ : The Id of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both
15
+
16
+ `--teamName [teamName]`
17
+ : The display name of the Microsoft Teams team. Specify either `teamId` or `teamName` but not both
18
+
19
+ `--channelId [channelId]`
20
+ : The Id of the Microsoft Teams team channel. Specify either `channelId` or `channelName` but not both
21
+
22
+ `--channelName [channelName]`
23
+ : The display name of the Microsoft Teams team channel. Specify either `channelId` or `channelName` but not both
24
+
25
+ `-r, --role [role]`
26
+ : Filter the results to only users with the given role: owner, member, guest
27
+
28
+ --8<-- "docs/cmd/_global.md"
29
+
30
+ ## Examples
31
+
32
+ List the memberships in a specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
33
+
34
+ ```sh
35
+ m365 teams channel membership list --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype
36
+ ```
37
+
38
+ List the memberships in a specified Microsoft Teams team with name _Team Name_ and channel with name _Channel Name_
39
+
40
+ ```sh
41
+ m365 teams channel membership list --teamName "Team Name" --channelName "Channel Name"
42
+ ```
43
+
44
+ List all owner memberships in the specified Microsoft Teams team with id 00000000-0000-0000-0000-000000000000 and channel id 00:00000000000000000000000000000000@thread.skype
45
+
46
+ ```sh
47
+ m365 teams channel membership list --teamId 00000000-0000-0000-0000-000000000000 --channelId 00:00000000000000000000000000000000@thread.skype --role owner
48
+ ```
@@ -0,0 +1,53 @@
1
+ # teams chat get
2
+
3
+ Get a Microsoft Teams chat conversation by id, participants or chat name.
4
+
5
+ ## Usage
6
+
7
+ ```sh
8
+ m365 teams chat get [options]
9
+ ```
10
+
11
+ ## Options
12
+
13
+ `-i, --id [id]`
14
+ : The ID of the chat conversation. Specify either `id`, `name` or `participants`, but not multiple.
15
+
16
+ `-n, --name [name]`
17
+ : The display name of the chat conversation. Specify either `id`, `name` or `participants`, but not multiple.
18
+
19
+ `-p, --participants [participants]`
20
+ : A comma-separated list of one or more e-mail addresses. Specify either `id`, `name` or `participants`, but not multiple.
21
+
22
+ --8<-- "docs/cmd/_global.md"
23
+
24
+ ## Remarks
25
+
26
+ The output will not include the chat conversation members or messages. It will just retrieve the conversation details.
27
+ When using the `participants` option, the signed-in user will automatically be included as a participant. There's no need to add it to the list manually.
28
+
29
+ ## Examples
30
+
31
+ Get a Microsoft Teams chat conversation by id
32
+
33
+ ```sh
34
+ m365 teams chat get --id 19:2da4c29f6d7041eca70b638b43d45437@thread.v2
35
+ ```
36
+
37
+ Get a Microsoft Teams one on one chat conversation, finding it by participant.
38
+
39
+ ```sh
40
+ m365 teams chat get --participants alexw@contoso.com
41
+ ```
42
+
43
+ Get a Microsoft Teams group chat conversation, finding it by participants.
44
+
45
+ ```sh
46
+ m365 teams chat get --participants alexw@contoso.com,meganb@contoso.com
47
+ ```
48
+
49
+ Get a Microsoft Teams chat conversation, finding it by display name
50
+
51
+ ```sh
52
+ m365 teams chat get --name "Just a conversation"
53
+ ```