Skip to content

Wr/add org create agent user @W-21532145@#1610

Merged
EstebanRomero84 merged 12 commits into
mainfrom
wr/addOrgCreateAgent-User
Mar 23, 2026
Merged

Wr/add org create agent user @W-21532145@#1610
EstebanRomero84 merged 12 commits into
mainfrom
wr/addOrgCreateAgent-User

Conversation

@WillieRuemmele
Copy link
Copy Markdown
Contributor

@WillieRuemmele WillieRuemmele commented Mar 11, 2026

What does this PR do?

adds a org create agent-user command to create a user that satisfies the default_agent_user requirements in agentscript

What issues does this PR fix or reference?

@W-21532145@

@WillieRuemmele WillieRuemmele changed the title Wr/add org create agent user Wr/add org create agent user @W-21532145@ Mar 12, 2026
@WillieRuemmele WillieRuemmele marked this pull request as ready for review March 12, 2026 15:42
@WillieRuemmele WillieRuemmele requested a review from a team as a code owner March 12, 2026 15:42
Comment thread test/unit/org/create/agent-user.test.ts Outdated
});
});

describe('Input Validation', () => {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's this test for?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's no OCLIF flag for a username, so this tests that the validation we do on that flag value is correct

Comment thread messages/create_agent_user.md Outdated

<%= config.bin %> <%= command.id %> --target-org myorg

- Create an agent user by specifying a base usernmane pattern; to make the username unique, the command appends a unique identifier:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo in usernmane

Copy link
Copy Markdown
Contributor

@EstebanRomero84 EstebanRomero84 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a NUT test-case?

@EstebanRomero84
Copy link
Copy Markdown
Contributor

QA Notes

I verified that the command creates a new user with Einstein Agent User profile. Also verified it assign the correct permissions.
Screenshot 2026-03-23 at 12 01 27 PM

Flags:
--base-username 🟢
--first-name 🟢
--last-name 🟢

Errors:

  • Invalid username: test, test@@test.com 🟢
  • Fail to assign permission sets 🟢

@EstebanRomero84 EstebanRomero84 merged commit 4c6f20b into main Mar 23, 2026
15 checks passed
@EstebanRomero84 EstebanRomero84 deleted the wr/addOrgCreateAgent-User branch March 23, 2026 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants