Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to assign scope(instances) using role:grant command in AM #566

Open
PraveenkumarC2005 opened this issue May 15, 2024 · 2 comments
Open
Labels
help wanted Extra attention is needed

Comments

@PraveenkumarC2005
Copy link

sfcc-ci Version

2.11.0

NodeJS Version

v22.0.0

sfcc-ci Path

/usr/local/bin/sfcc-ci

Host OS Details

ProductName: macOS
ProductVersion: 14.4.1
BuildVersion: 23E224

What happened?

I'm trying to use role:grant command to assign role and scope(instance), but i'm getting below error. Kindly help with specified instances command if i'm doing something wrong
Error: Granting role failed: invalid argument TenantFilter
Command : sfcc-ci role:grant --login [email protected] --role bm-user --scope "development*"

Relevant log output

No response

@PraveenkumarC2005 PraveenkumarC2005 added the help wanted Extra attention is needed label May 15, 2024
@PraveenkumarC2005 PraveenkumarC2005 changed the title Unable to assign scope(instances) using role:grant command Unable to assign scope(instances) using role:grant command in AM May 15, 2024
@PraveenkumarC2005
Copy link
Author

@tobiaslohr would you able to help please?

@tobiaslohr
Copy link
Contributor

@PraveenkumarC2005 Please have a look at the help text and example with sfcc-ci role:grant --help.

$ sfcc-ci role:grant --login the-user --role the-role --scope zzzz_dev
$ sfcc-ci role:grant --login the-user --role the-role --scope zzzz_*
$ sfcc-ci role:grant --login the-user --role the-role --scope "zzzz_s01,zzzz_s02"

The --scope is supposed to be a pattern consisting of the four-character realm identifier (zzzz in the examples above), followed by an "_" (underscore)", followed by the instance (any of dev = Development, stg = Staging, prd = Production, s[0-9]+, like s001 = Sandbox 001)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants