Skip to content

Commit 266d17d

Browse files
committed
Merge branch 'issue-6181' of https://github.com/nanddeepn/cli-microsoft365 into issue-6181
2 parents c872016 + 3e249dc commit 266d17d

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

docs/docs/cmd/spo/user/user-ensure.mdx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ m365 spo user ensure [options]
2121
`--entraId [--entraId]`
2222
: Id of the user in Entra. Specify either `aadId`, `entraId`, `userName`, `loginName`, `entraGroupId` or `entraGroupName`.
2323

24-
`--aadId [--aadId]`
25-
: (deprecated. Use `entraId` instead) Id of the user in Microsoft Entra. Specify either `aadId`, `entraId`, `userName`, `loginName`, `entraGroupId` or `entraGroupName`.
26-
2724
`--userName [userName]`
2825
: User's UPN (user principal name, e.g. john@contoso.com). Specify either `aadId`, `entraId`, `userName`, `loginName`, `entraGroupId` or `entraGroupName`.
2926

src/m365/spo/commands/user/user-ensure.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,4 +398,4 @@ describe(commands.USER_ENSURE, () => {
398398
const actual = await command.validate({ options: { webUrl: validWebUrl, entraGroupId: validEntraGroupId } }, commandInfo);
399399
assert.strictEqual(actual, true);
400400
});
401-
});
401+
});

src/m365/spo/commands/user/user-ensure.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ class SpoUserEnsureCommand extends SpoCommand {
106106

107107
#initOptionSets(): void {
108108
this.optionSets.push({
109-
options: ['entraId', 'aadId', 'userName', 'loginName', 'entraGroupId', 'entraGroupName'],
109+
options: ['entraId', 'userName', 'loginName', 'entraGroupId', 'entraGroupName'],
110110
runsWhen: (args) => args.options.entraId || args.options.aadId || args.options.userName || args.options.loginName || args.options.entraGroupId || args.options.entraGroupName
111111
});
112112
}

0 commit comments

Comments
 (0)