@pnp/cli-microsoft365 6.3.0 → 6.4.0-beta.aacf728
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/.eslintrc.js +1 -0
- package/dist/m365/aad/commands/user/user-license-remove.js +2 -1
- package/dist/m365/aad/commands/user/user-recyclebinitem-restore.js +2 -9
- package/dist/m365/flow/commands/flow-disable.js +9 -2
- package/dist/m365/flow/commands/flow-enable.js +9 -2
- package/dist/m365/flow/commands/flow-get.js +9 -2
- package/dist/m365/flow/commands/flow-list.js +1 -1
- package/dist/m365/flow/commands/flow-remove.js +2 -2
- package/dist/m365/flow/commands/owner/owner-list.js +89 -0
- package/dist/m365/flow/commands/run/run-cancel.js +9 -2
- package/dist/m365/flow/commands.js +1 -0
- package/docs/docs/cmd/aad/user/user-remove.md +1 -1
- package/docs/docs/cmd/flow/owner/owner-list.md +90 -0
- package/npm-shrinkwrap.json +2 -2
- package/package.json +2 -2
package/.eslintrc.js
CHANGED
|
@@ -81,7 +81,8 @@ _AadUserLicenseRemoveCommand_instances = new WeakSet(), _AadUserLicenseRemoveCom
|
|
|
81
81
|
this.telemetry.push((args) => {
|
|
82
82
|
Object.assign(this.telemetryProperties, {
|
|
83
83
|
userId: typeof args.options.userId !== 'undefined',
|
|
84
|
-
userName: typeof args.options.userName !== 'undefined'
|
|
84
|
+
userName: typeof args.options.userName !== 'undefined',
|
|
85
|
+
confirm: !!args.options.confirm
|
|
85
86
|
});
|
|
86
87
|
});
|
|
87
88
|
}, _AadUserLicenseRemoveCommand_initOptions = function _AadUserLicenseRemoveCommand_initOptions() {
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _AadUserRecycleBinItemRestoreCommand_instances,
|
|
16
|
+
var _AadUserRecycleBinItemRestoreCommand_instances, _AadUserRecycleBinItemRestoreCommand_initOptions, _AadUserRecycleBinItemRestoreCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../../request");
|
|
19
19
|
const validation_1 = require("../../../../utils/validation");
|
|
@@ -29,7 +29,6 @@ class AadUserRecycleBinItemRestoreCommand extends GraphCommand_1.default {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
super();
|
|
31
31
|
_AadUserRecycleBinItemRestoreCommand_instances.add(this);
|
|
32
|
-
__classPrivateFieldGet(this, _AadUserRecycleBinItemRestoreCommand_instances, "m", _AadUserRecycleBinItemRestoreCommand_initTelemetry).call(this);
|
|
33
32
|
__classPrivateFieldGet(this, _AadUserRecycleBinItemRestoreCommand_instances, "m", _AadUserRecycleBinItemRestoreCommand_initOptions).call(this);
|
|
34
33
|
__classPrivateFieldGet(this, _AadUserRecycleBinItemRestoreCommand_instances, "m", _AadUserRecycleBinItemRestoreCommand_initValidators).call(this);
|
|
35
34
|
}
|
|
@@ -55,13 +54,7 @@ class AadUserRecycleBinItemRestoreCommand extends GraphCommand_1.default {
|
|
|
55
54
|
});
|
|
56
55
|
}
|
|
57
56
|
}
|
|
58
|
-
_AadUserRecycleBinItemRestoreCommand_instances = new WeakSet(),
|
|
59
|
-
this.telemetry.push((args) => {
|
|
60
|
-
Object.assign(this.telemetryProperties, {
|
|
61
|
-
confirm: !!args.options.confirm
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
}, _AadUserRecycleBinItemRestoreCommand_initOptions = function _AadUserRecycleBinItemRestoreCommand_initOptions() {
|
|
57
|
+
_AadUserRecycleBinItemRestoreCommand_instances = new WeakSet(), _AadUserRecycleBinItemRestoreCommand_initOptions = function _AadUserRecycleBinItemRestoreCommand_initOptions() {
|
|
65
58
|
this.options.unshift({
|
|
66
59
|
option: '--id <id>'
|
|
67
60
|
});
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _FlowDisableCommand_instances, _FlowDisableCommand_initOptions;
|
|
16
|
+
var _FlowDisableCommand_instances, _FlowDisableCommand_initTelemetry, _FlowDisableCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../request");
|
|
19
19
|
const formatting_1 = require("../../../utils/formatting");
|
|
@@ -29,6 +29,7 @@ class FlowDisableCommand extends AzmgmtCommand_1.default {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
super();
|
|
31
31
|
_FlowDisableCommand_instances.add(this);
|
|
32
|
+
__classPrivateFieldGet(this, _FlowDisableCommand_instances, "m", _FlowDisableCommand_initTelemetry).call(this);
|
|
32
33
|
__classPrivateFieldGet(this, _FlowDisableCommand_instances, "m", _FlowDisableCommand_initOptions).call(this);
|
|
33
34
|
}
|
|
34
35
|
commandAction(logger, args) {
|
|
@@ -52,7 +53,13 @@ class FlowDisableCommand extends AzmgmtCommand_1.default {
|
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
_FlowDisableCommand_instances = new WeakSet(),
|
|
56
|
+
_FlowDisableCommand_instances = new WeakSet(), _FlowDisableCommand_initTelemetry = function _FlowDisableCommand_initTelemetry() {
|
|
57
|
+
this.telemetry.push((args) => {
|
|
58
|
+
Object.assign(this.telemetryProperties, {
|
|
59
|
+
asAdmin: !!args.options.asAdmin
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
}, _FlowDisableCommand_initOptions = function _FlowDisableCommand_initOptions() {
|
|
56
63
|
this.options.unshift({
|
|
57
64
|
option: '-n, --name <name>'
|
|
58
65
|
}, {
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _FlowEnableCommand_instances, _FlowEnableCommand_initOptions;
|
|
16
|
+
var _FlowEnableCommand_instances, _FlowEnableCommand_initTelemetry, _FlowEnableCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../request");
|
|
19
19
|
const formatting_1 = require("../../../utils/formatting");
|
|
@@ -29,6 +29,7 @@ class FlowEnableCommand extends AzmgmtCommand_1.default {
|
|
|
29
29
|
constructor() {
|
|
30
30
|
super();
|
|
31
31
|
_FlowEnableCommand_instances.add(this);
|
|
32
|
+
__classPrivateFieldGet(this, _FlowEnableCommand_instances, "m", _FlowEnableCommand_initTelemetry).call(this);
|
|
32
33
|
__classPrivateFieldGet(this, _FlowEnableCommand_instances, "m", _FlowEnableCommand_initOptions).call(this);
|
|
33
34
|
}
|
|
34
35
|
commandAction(logger, args) {
|
|
@@ -52,7 +53,13 @@ class FlowEnableCommand extends AzmgmtCommand_1.default {
|
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
}
|
|
55
|
-
_FlowEnableCommand_instances = new WeakSet(),
|
|
56
|
+
_FlowEnableCommand_instances = new WeakSet(), _FlowEnableCommand_initTelemetry = function _FlowEnableCommand_initTelemetry() {
|
|
57
|
+
this.telemetry.push((args) => {
|
|
58
|
+
Object.assign(this.telemetryProperties, {
|
|
59
|
+
asAdmin: !!args.options.asAdmin
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
}, _FlowEnableCommand_initOptions = function _FlowEnableCommand_initOptions() {
|
|
56
63
|
this.options.unshift({
|
|
57
64
|
option: '-n, --name <name>'
|
|
58
65
|
}, {
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _FlowGetCommand_instances, _FlowGetCommand_initOptions;
|
|
16
|
+
var _FlowGetCommand_instances, _FlowGetCommand_initTelemetry, _FlowGetCommand_initOptions;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const request_1 = require("../../../request");
|
|
19
19
|
const formatting_1 = require("../../../utils/formatting");
|
|
@@ -32,6 +32,7 @@ class FlowGetCommand extends AzmgmtCommand_1.default {
|
|
|
32
32
|
constructor() {
|
|
33
33
|
super();
|
|
34
34
|
_FlowGetCommand_instances.add(this);
|
|
35
|
+
__classPrivateFieldGet(this, _FlowGetCommand_instances, "m", _FlowGetCommand_initTelemetry).call(this);
|
|
35
36
|
__classPrivateFieldGet(this, _FlowGetCommand_instances, "m", _FlowGetCommand_initOptions).call(this);
|
|
36
37
|
}
|
|
37
38
|
commandAction(logger, args) {
|
|
@@ -60,7 +61,13 @@ class FlowGetCommand extends AzmgmtCommand_1.default {
|
|
|
60
61
|
});
|
|
61
62
|
}
|
|
62
63
|
}
|
|
63
|
-
_FlowGetCommand_instances = new WeakSet(),
|
|
64
|
+
_FlowGetCommand_instances = new WeakSet(), _FlowGetCommand_initTelemetry = function _FlowGetCommand_initTelemetry() {
|
|
65
|
+
this.telemetry.push((args) => {
|
|
66
|
+
Object.assign(this.telemetryProperties, {
|
|
67
|
+
asAdmin: !!args.options.asAdmin
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
}, _FlowGetCommand_initOptions = function _FlowGetCommand_initOptions() {
|
|
64
71
|
this.options.unshift({
|
|
65
72
|
option: '-n, --name <name>'
|
|
66
73
|
}, {
|
|
@@ -60,7 +60,7 @@ class FlowListCommand extends AzmgmtItemsListCommand_1.AzmgmtItemsListCommand {
|
|
|
60
60
|
_FlowListCommand_instances = new WeakSet(), _FlowListCommand_initTelemetry = function _FlowListCommand_initTelemetry() {
|
|
61
61
|
this.telemetry.push((args) => {
|
|
62
62
|
Object.assign(this.telemetryProperties, {
|
|
63
|
-
asAdmin: args.options.asAdmin
|
|
63
|
+
asAdmin: !!args.options.asAdmin
|
|
64
64
|
});
|
|
65
65
|
});
|
|
66
66
|
}, _FlowListCommand_initOptions = function _FlowListCommand_initOptions() {
|
|
@@ -82,8 +82,8 @@ class FlowRemoveCommand extends AzmgmtCommand_1.default {
|
|
|
82
82
|
_FlowRemoveCommand_instances = new WeakSet(), _FlowRemoveCommand_initTelemetry = function _FlowRemoveCommand_initTelemetry() {
|
|
83
83
|
this.telemetry.push((args) => {
|
|
84
84
|
Object.assign(this.telemetryProperties, {
|
|
85
|
-
asAdmin:
|
|
86
|
-
confirm:
|
|
85
|
+
asAdmin: !!args.options.asAdmin,
|
|
86
|
+
confirm: !!args.options.confirm
|
|
87
87
|
});
|
|
88
88
|
});
|
|
89
89
|
}, _FlowRemoveCommand_initOptions = function _FlowRemoveCommand_initOptions() {
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
|
|
12
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
13
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
|
+
};
|
|
16
|
+
var _FlowOwnerListCommand_instances, _FlowOwnerListCommand_initTelemetry, _FlowOwnerListCommand_initOptions, _FlowOwnerListCommand_initValidators;
|
|
17
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
const Cli_1 = require("../../../../cli/Cli");
|
|
19
|
+
const formatting_1 = require("../../../../utils/formatting");
|
|
20
|
+
const odata_1 = require("../../../../utils/odata");
|
|
21
|
+
const validation_1 = require("../../../../utils/validation");
|
|
22
|
+
const AzmgmtCommand_1 = require("../../../base/AzmgmtCommand");
|
|
23
|
+
const commands_1 = require("../../commands");
|
|
24
|
+
class FlowOwnerListCommand extends AzmgmtCommand_1.default {
|
|
25
|
+
get name() {
|
|
26
|
+
return commands_1.default.OWNER_LIST;
|
|
27
|
+
}
|
|
28
|
+
get description() {
|
|
29
|
+
return 'Lists all owners of a Power Automate flow';
|
|
30
|
+
}
|
|
31
|
+
defaultProperties() {
|
|
32
|
+
return ['roleName', 'id', 'type'];
|
|
33
|
+
}
|
|
34
|
+
constructor() {
|
|
35
|
+
super();
|
|
36
|
+
_FlowOwnerListCommand_instances.add(this);
|
|
37
|
+
__classPrivateFieldGet(this, _FlowOwnerListCommand_instances, "m", _FlowOwnerListCommand_initTelemetry).call(this);
|
|
38
|
+
__classPrivateFieldGet(this, _FlowOwnerListCommand_instances, "m", _FlowOwnerListCommand_initOptions).call(this);
|
|
39
|
+
__classPrivateFieldGet(this, _FlowOwnerListCommand_instances, "m", _FlowOwnerListCommand_initValidators).call(this);
|
|
40
|
+
}
|
|
41
|
+
commandAction(logger, args) {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
try {
|
|
44
|
+
if (this.verbose) {
|
|
45
|
+
logger.logToStderr(`Listing owners for flow ${args.options.flowName} in environment ${args.options.environmentName}`);
|
|
46
|
+
}
|
|
47
|
+
const response = yield odata_1.odata.getAllItems(`${this.resource}providers/Microsoft.ProcessSimple/${args.options.asAdmin ? 'scopes/admin/' : ''}environments/${formatting_1.formatting.encodeQueryParameter(args.options.environmentName)}/flows/${formatting_1.formatting.encodeQueryParameter(args.options.flowName)}/permissions?api-version=2016-11-01`);
|
|
48
|
+
if (!Cli_1.Cli.shouldTrimOutput(args.options.output)) {
|
|
49
|
+
logger.log(response);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
//converted to text friendly output
|
|
53
|
+
logger.log(response.map(res => ({
|
|
54
|
+
roleName: res.properties.roleName,
|
|
55
|
+
id: res.properties.principal.id,
|
|
56
|
+
type: res.properties.principal.type
|
|
57
|
+
})));
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
catch (err) {
|
|
61
|
+
this.handleRejectedODataJsonPromise(err);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
_FlowOwnerListCommand_instances = new WeakSet(), _FlowOwnerListCommand_initTelemetry = function _FlowOwnerListCommand_initTelemetry() {
|
|
67
|
+
this.telemetry.push((args) => {
|
|
68
|
+
Object.assign(this.telemetryProperties, {
|
|
69
|
+
asAdmin: !!args.options.asAdmin
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
}, _FlowOwnerListCommand_initOptions = function _FlowOwnerListCommand_initOptions() {
|
|
73
|
+
this.options.unshift({
|
|
74
|
+
option: '-e, --environmentName <environmentName>'
|
|
75
|
+
}, {
|
|
76
|
+
option: '-f, --flowName <flowName>'
|
|
77
|
+
}, {
|
|
78
|
+
option: '--asAdmin'
|
|
79
|
+
});
|
|
80
|
+
}, _FlowOwnerListCommand_initValidators = function _FlowOwnerListCommand_initValidators() {
|
|
81
|
+
this.validators.push((args) => __awaiter(this, void 0, void 0, function* () {
|
|
82
|
+
if (!validation_1.validation.isValidGuid(args.options.flowName)) {
|
|
83
|
+
return `${args.options.flowName} is not a valid GUID.`;
|
|
84
|
+
}
|
|
85
|
+
return true;
|
|
86
|
+
}));
|
|
87
|
+
};
|
|
88
|
+
module.exports = new FlowOwnerListCommand();
|
|
89
|
+
//# sourceMappingURL=owner-list.js.map
|
|
@@ -13,7 +13,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
|
|
|
13
13
|
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
14
14
|
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
15
15
|
};
|
|
16
|
-
var _FlowRunCancelCommand_instances, _FlowRunCancelCommand_initOptions, _FlowRunCancelCommand_initValidators;
|
|
16
|
+
var _FlowRunCancelCommand_instances, _FlowRunCancelCommand_initTelemetry, _FlowRunCancelCommand_initOptions, _FlowRunCancelCommand_initValidators;
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
const Cli_1 = require("../../../../cli/Cli");
|
|
19
19
|
const request_1 = require("../../../../request");
|
|
@@ -31,6 +31,7 @@ class FlowRunCancelCommand extends AzmgmtCommand_1.default {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
super();
|
|
33
33
|
_FlowRunCancelCommand_instances.add(this);
|
|
34
|
+
__classPrivateFieldGet(this, _FlowRunCancelCommand_instances, "m", _FlowRunCancelCommand_initTelemetry).call(this);
|
|
34
35
|
__classPrivateFieldGet(this, _FlowRunCancelCommand_instances, "m", _FlowRunCancelCommand_initOptions).call(this);
|
|
35
36
|
__classPrivateFieldGet(this, _FlowRunCancelCommand_instances, "m", _FlowRunCancelCommand_initValidators).call(this);
|
|
36
37
|
}
|
|
@@ -71,7 +72,13 @@ class FlowRunCancelCommand extends AzmgmtCommand_1.default {
|
|
|
71
72
|
});
|
|
72
73
|
}
|
|
73
74
|
}
|
|
74
|
-
_FlowRunCancelCommand_instances = new WeakSet(),
|
|
75
|
+
_FlowRunCancelCommand_instances = new WeakSet(), _FlowRunCancelCommand_initTelemetry = function _FlowRunCancelCommand_initTelemetry() {
|
|
76
|
+
this.telemetry.push((args) => {
|
|
77
|
+
Object.assign(this.telemetryProperties, {
|
|
78
|
+
confirm: !!args.options.confirm
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
}, _FlowRunCancelCommand_initOptions = function _FlowRunCancelCommand_initOptions() {
|
|
75
82
|
this.options.unshift({
|
|
76
83
|
option: '-n, --name <name>'
|
|
77
84
|
}, {
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
# flow owner list
|
|
2
|
+
|
|
3
|
+
Lists all owners of a Power Automate flow
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```sh
|
|
8
|
+
m365 flow owner list [options]
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Options
|
|
12
|
+
|
|
13
|
+
`-e, --environmentName <environmentName>`
|
|
14
|
+
: The name of the environment.
|
|
15
|
+
|
|
16
|
+
`-f, --flowName <flowName>`
|
|
17
|
+
: The name of the Power Automate flow.
|
|
18
|
+
|
|
19
|
+
`--asAdmin`
|
|
20
|
+
: Run the command as admin.
|
|
21
|
+
|
|
22
|
+
--8<-- "docs/cmd/_global.md"
|
|
23
|
+
|
|
24
|
+
## Examples
|
|
25
|
+
|
|
26
|
+
Gets the owners by the name of the Power Automate flow within a specified environment
|
|
27
|
+
|
|
28
|
+
```sh
|
|
29
|
+
m365 flow owner list --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
Gets the owners by the name of the Power Automate flow within a specified environment with admin privileges
|
|
33
|
+
|
|
34
|
+
```sh
|
|
35
|
+
m365 flow owner list --environmentName Default-c5a5d746-3520-453f-8a69-780f8e44917e --flowName 72f2be4a-78c1-4220-a048-dbf557296a72 --asAdmin
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
## Response
|
|
39
|
+
|
|
40
|
+
=== "JSON"
|
|
41
|
+
|
|
42
|
+
```json
|
|
43
|
+
[
|
|
44
|
+
{
|
|
45
|
+
"name": "fe36f75e-c103-410b-a18a-2bf6df06ac3a",
|
|
46
|
+
"id": "/providers/Microsoft.ProcessSimple/environments/Default-c5a5d746-3520-453f-8a69-780f8e44917e/flows/72f2be4a-78c1-4220-a048-dbf557296a72/permissions/fe36f75e-c103-410b-a18a-2bf6df06ac3a",
|
|
47
|
+
"type": "/providers/Microsoft.ProcessSimple/environments/flows/permissions",
|
|
48
|
+
"properties": {
|
|
49
|
+
"roleName": "Owner",
|
|
50
|
+
"permissionType": "Principal",
|
|
51
|
+
"principal": {
|
|
52
|
+
"id": "fe36f75e-c103-410b-a18a-2bf6df06ac3a",
|
|
53
|
+
"type": "User"
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
]
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
=== "Text"
|
|
61
|
+
|
|
62
|
+
```text
|
|
63
|
+
roleName id type
|
|
64
|
+
-------- ------------------------------------ ----
|
|
65
|
+
Owner fe36f75e-c103-410b-a18a-2bf6df06ac3a User
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
=== "CSV"
|
|
69
|
+
|
|
70
|
+
```csv
|
|
71
|
+
roleName,id,type
|
|
72
|
+
Owner,fe36f75e-c103-410b-a18a-2bf6df06ac3a,User
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
=== "Markdown"
|
|
76
|
+
|
|
77
|
+
```md
|
|
78
|
+
# flow owner list --environmentName "Default-c5a5d746-3520-453f-8a69-780f8e44917e" --flowName "72f2be4a-78c1-4220-a048-dbf557296a72"
|
|
79
|
+
|
|
80
|
+
Date: 25/02/2023
|
|
81
|
+
|
|
82
|
+
## fe36f75e-c103-410b-a18a-2bf6df06ac3a (/providers/Microsoft.ProcessSimple/environments/Default-c5a5d746-3520-453f-8a69-780f8e44917e/flows/72f2be4a-78c1-4220-a048-dbf557296a72/permissions/fe36f75e-c103-410b-a18a-2bf6df06ac3a)
|
|
83
|
+
|
|
84
|
+
Property | Value
|
|
85
|
+
---------|-------
|
|
86
|
+
name | fe36f75e-c103-410b-a18a-2bf6df06ac3a
|
|
87
|
+
id | /providers/Microsoft.ProcessSimple/environments/Default-c5a5d746-3520-453f-8a69-780f8e44917e/flows/72f2be4a-78c1-4220-a048-dbf557296a72/permissions/fe36f75e-c103-410b-a18a-2bf6df06ac3a
|
|
88
|
+
type | /providers/Microsoft.ProcessSimple/environments/flows/permissions
|
|
89
|
+
properties | {"roleName":"Owner","permissionType":"Principal","principal":{"id":"fe36f75e-c103-410b-a18a-2bf6df06ac3a","type":"User"}}
|
|
90
|
+
```
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0",
|
|
4
4
|
"lockfileVersion": 2,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@pnp/cli-microsoft365",
|
|
9
|
-
"version": "6.
|
|
9
|
+
"version": "6.4.0",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@azure/msal-node": "^1.15.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pnp/cli-microsoft365",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.4.0-beta.aacf728",
|
|
4
4
|
"description": "Manage Microsoft 365 and SharePoint Framework projects on any platform",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/api.js",
|
|
@@ -273,4 +273,4 @@
|
|
|
273
273
|
"sinon": "^15.0.1",
|
|
274
274
|
"source-map-support": "^0.5.21"
|
|
275
275
|
}
|
|
276
|
-
}
|
|
276
|
+
}
|