Skip to content

Commit b1a4e01

Browse files
SmitaNachanmilanholemans
authored andcommitted
Fixes Rights property from 'spo applicationcustomizer get' command. Closes #6052
1 parent 1a66010 commit b1a4e01

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

docs/docs/cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,10 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
9393
"Name": "{4a428b32-08cf-45c7-9986-17585af38806}",
9494
"RegistrationId": null,
9595
"RegistrationType": 0,
96-
"Rights": "{\"High\":\"0\",\"Low\":\"0\"}",
96+
"Rights": {
97+
"High": 0,
98+
"Low": 0
99+
},
97100
"Scope": "Web",
98101
"ScriptBlock": null,
99102
"ScriptSrc": null,
@@ -120,7 +123,6 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
120123
Name : {4a428b32-08cf-45c7-9986-17585af38806}
121124
RegistrationId : null
122125
RegistrationType : 0
123-
Rights : {"High":"0","Low":"0"}
124126
Scope : Web
125127
ScriptBlock : null
126128
ScriptSrc : null
@@ -134,8 +136,8 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
134136
<TabItem value="CSV">
135137

136138
```csv
137-
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,HostProperties,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Rights,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
138-
9a8b100c-246b-4592-9454-67826523e159,"{""testMessage"":""Test message""}",,,,,4a428b32-08cf-45c7-9986-17585af38806,,ClientSideExtension.ApplicationCustomizer,{4a428b32-08cf-45c7-9986-17585af38806},,0,"{""High"":""0"",""Low"":""0""}",Web,,,65536,HelloWorld,,1.0.1.0
139+
ClientSideComponentId,ClientSideComponentProperties,CommandUIExtension,Description,Group,Id,ImageUrl,Location,Name,RegistrationId,RegistrationType,Scope,ScriptBlock,ScriptSrc,Sequence,Title,Url,VersionOfUserCustomAction
140+
9a8b100c-246b-4592-9454-67826523e159,"{""testMessage"":""Test message""}",,,,4a428b32-08cf-45c7-9986-17585af38806,,ClientSideExtension.ApplicationCustomizer,Some customizer,,0,Web,,,0,Some customizer,,16.0.1.0
139141
```
140142

141143
</TabItem>
@@ -157,7 +159,6 @@ m365 spo applicationcustomizer get --id 14125658-a9bc-4ddf-9c75-1b5767c9a337 --w
157159
Location | ClientSideExtension.ApplicationCustomizer
158160
Name | {4a428b32-08cf-45c7-9986-17585af38806}
159161
RegistrationType | 0
160-
Rights | {"High":"0","Low":"0"}
161162
Scope | Web
162163
Sequence | 65536
163164
Title | HelloWorld

docs/docs/v10-upgrade-guidance.mdx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,14 +149,22 @@ In the past versions of CLI for Microsoft 365, the command had no output. When u
149149

150150
When using the [spo file copy](./cmd/spo/file/file-copy.mdx) command, please use the new command input. This means that you'll have to remove option `--resetAuthorAndCreated` from your scripts and automation tools.
151151

152-
### Removed 'spo folder rename' alias
152+
### Removed `spo folder rename` alias
153153

154154
The `spo folder rename` command was removed and replaced by the [spo folder set](./cmd/spo/folder/folder-set.mdx) command.
155155

156156
#### What action do I need to take?
157157

158158
Please, update your scripts to use the `spo folder set` command instead of `spo folder rename`.
159159

160+
### Updated output of `spo applicationcustomizer get` command
161+
162+
In the previous version of CLI, the command output had a `Rights` property that was a stringified JSON object. In this release, this has been changed to a JSON object.
163+
164+
#### What action do I need to take?
165+
166+
Please, check the documentation of the [spo applicationcustomizer get](./cmd/spo/applicationcustomizer/applicationcustomizer-get.mdx) command to see the updated output and adjust your scripts accordingly.
167+
160168
## SharePoint Framework
161169

162170
### Removed overwrite option from `spfx project github workflow add` command
@@ -165,4 +173,4 @@ Overwriting the SPFx package should be the default behavior of the continuous de
165173

166174
#### What action do I need to take?
167175

168-
Please update your scripts not to use the `overwrite` option.
176+
Please update your scripts not to use the `overwrite` option.

src/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe(commands.APPLICATIONCUSTOMIZER_GET, () => {
3131
"Name": title,
3232
"RegistrationId": null,
3333
"RegistrationType": 0,
34-
"Rights": "{\"High\":0,\"Low\":0}",
34+
"Rights": { "High": 0, "Low": 0 },
3535
"Scope": 3,
3636
"ScriptBlock": null,
3737
"ScriptSrc": null,
@@ -59,7 +59,7 @@ describe(commands.APPLICATIONCUSTOMIZER_GET, () => {
5959
Name: 'Some customizer',
6060
RegistrationId: null,
6161
RegistrationType: 0,
62-
Rights: '"{\\"High\\":0,\\"Low\\":0}"',
62+
Rights: { "High": 0, "Low": 0 },
6363
Scope: 'Web',
6464
ScriptBlock: null,
6565
ScriptSrc: null,
@@ -642,7 +642,7 @@ describe(commands.APPLICATIONCUSTOMIZER_GET, () => {
642642
Name: 'Some customizer',
643643
RegistrationId: null,
644644
RegistrationType: 0,
645-
Rights: '{"High":0,"Low":0}',
645+
Rights: { "High": 0, "Low": 0 },
646646
Scope: 'Web',
647647
ScriptBlock: null,
648648
ScriptSrc: null,
@@ -678,7 +678,7 @@ describe(commands.APPLICATIONCUSTOMIZER_GET, () => {
678678
"Name": title,
679679
"RegistrationId": null,
680680
"RegistrationType": 0,
681-
"Rights": "{\"High\":0,\"Low\":0}",
681+
"Rights": { "High": 0, "Low": 0 },
682682
"Scope": "3",
683683
"ScriptBlock": null,
684684
"ScriptSrc": null,

src/m365/spo/commands/applicationcustomizer/applicationcustomizer-get.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ class SpoApplicationCustomizerGetCommand extends SpoCommand {
114114
if (!args.options.clientSideComponentProperties) {
115115
await logger.log({
116116
...customAction,
117-
Rights: JSON.stringify(customAction.Rights),
118117
Scope: this.humanizeScope(customAction.Scope)
119118
});
120119
}

0 commit comments

Comments
 (0)