-
Notifications
You must be signed in to change notification settings - Fork 92
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
Issues while listing and creating SFCC Users Through sfcc -ci #164
Comments
Expired auth tokens cause validation to fail. As the error message suggests, you will need to re-authenticate by running |
Hi @ngaddipati33, as written by taehyunlim, please try to re-authenticate first and then run Best regards |
It doesn't seem to be a expired auth as I can continue getting a user list - just user:create at the Account Manager / Org level seems to trigger the message. I can add at the instance level too. |
Hi @makayez, to get a deeper understanding of the problem, I need more informations. Please answer the following questions:
Thank you and Best regards |
I have this same issue using client:auth GL-xxxxxxx-ML1:sfcc-ci xxxxxxx$ sfcc-ci user:list -o xxxxxxxxxxxxxxxxxxxxxxx Help is kindly appreciated. |
Hi @walter-foulkes, can you please try to use the command What is the result here? Best regards |
I did try this.
Thanks,
Walter Foulkes
Subject: Re: [SalesforceCommerceCloud/sfcc-ci] Issues while listing and creating SFCC Users Through sfcc -ci (#164)
Hi @walter-foulkes<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fwalter-foulkes&data=02%7C01%7Cwalter.foulkes%40disney.com%7C2e41dc773c164342f23e08d82e0f8892%7C56b731a8a2ac4c32bf6b616810e913c6%7C1%7C0%7C637309991538628213&sdata=hW9EOv5iWSgq%2BEpu5rCrE%2FKH%2FlPtIi%2BadrMpv8Ec5Xo%3D&reserved=0>,
can you please try to use the command
sfcc-ci user:list --org xxxxxxxxxxxxxxxxxxxxxxx
What is the result here?
Please keep in mind to use the exact same ID, which got returned from the command
sfcc-ci org:list xxxxxxxxxxxxxxxxxxxxxxx.
Best regards
Tobias
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FSalesforceCommerceCloud%2Fsfcc-ci%2Fissues%2F164%23issuecomment-662287774&data=02%7C01%7Cwalter.foulkes%40disney.com%7C2e41dc773c164342f23e08d82e0f8892%7C56b731a8a2ac4c32bf6b616810e913c6%7C1%7C0%7C637309991538638213&sdata=0pyEtdh6fvZeYMX3rjqydE0VDnmQUZB8yA2BAfWwTN0%3D&reserved=0>, or unsubscribe<https://nam04.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAQLQPMADVTJ77EEN4BG4VYDR42HG7ANCNFSM4OHBSBTA&data=02%7C01%7Cwalter.foulkes%40disney.com%7C2e41dc773c164342f23e08d82e0f8892%7C56b731a8a2ac4c32bf6b616810e913c6%7C1%7C0%7C637309991538638213&sdata=4nxugBsB2efX6VMbYmIfTqd%2BPi9Faf4r1ElarOdj0Xc%3D&reserved=0>.
Here are the results from a BASH script I wrote that just goes through the scenarios one after another.
#### sfcc-ci client:auth
Authentication succeeded
#### sfcc-ci instance:list
╔══════════════════╤═══════════════════════════════════════╗
║ Client ID │ xxxxxxxMYCLIENTIDxxxxxxx ║
╟──────────────────┼───────────────────────────────────────╢
║ User │ (not set) ║
╟──────────────────┼───────────────────────────────────────╢
║ Default Instance │ production-na02-myorg.demandware.net ║
╚══════════════════╧═══════════════════════════════════════╝
╔══════════╤═══════════════════════════════════════╤═════════╗
║ Alias │ Host │ Default ║
╟──────────┼───────────────────────────────────────┼─────────╢
║ admin-ci │ production-na02-myorg.demandware.net │ Yes ║
╚══════════╧═══════════════════════════════════════╧═════════╝
#### sfcc-ci org:list
╔══════════════════════════════════════╤═════════════════════════════════════════╤════════╤════════════╗
║ id │ name │ realms │ twoFARoles ║
╟──────────────────────────────────────┼─────────────────────────────────────────┼────────┼────────────╢
║ xxxxxxxxxxxxxMYORGIDxxxxxxxxxxxxxx │ MY COMPANY Attractions Technology, LLC │ 4 │ false ║
╚══════════════════════════════════════╧═════════════════════════════════════════╧════════╧════════════╝
#### sfcc-ci user:list --org xxxxxxxxxxxxxMYORGIDxxxxxxxxxxxxxx
Error: Authentication invalid. Please (re-)authenticate by running ´sfcc-ci auth:login´ or ´sfcc-ci client:auth´
#### sfcc-ci user:list
No users found
#### sfcc-ci code:list
Number of code versions: 10
╔══════════════════════════════════════╤══════════════════════╤════════╤════════════════════╤════════════════════════╤════════════╗
║ ID │ Activation Time │ Active │ Compatibility Mode │ Last Modification Time │ Total Size ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ 20200709_release_7_9_1 │ 2020-07-10T17:24:54Z │ false │ 18.10 │ 2020-07-10T17:24:53Z │ ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ 20200709_release_7_9_1_07162020-1 │ 2020-07-16T00:21:39Z │ false │ 18.10 │ 2020-07-16T00:21:38Z │ ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ 20200721_release_7_14 │ 2020-07-21T23:33:43Z │ false │ 18.10 │ 2020-07-21T22:59:14Z │ ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ debugging_build_20200528_1_2f3fe40d5 │ 2020-05-29T00:56:48Z │ false │ 18.10 │ 2020-05-29T00:56:47Z │ ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ release_3_4_20200625_2_2cf1243be │ 2020-07-02T17:14:36Z │ false │ 18.10 │ 2020-07-02T16:57:30Z │ ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ release_3_5_20200701_3_9dcc55b87 │ 2020-07-02T18:46:52Z │ false │ 18.10 │ 2020-07-02T18:42:45Z │ ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ release_3_5_20200703_1_bea054c5e │ 2020-07-06T23:52:44Z │ false │ 18.10 │ 2020-07-03T19:36:00Z │ ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ release_3_5_20200703_3_5339c90d5 │ 2020-07-06T23:53:39Z │ false │ 18.10 │ 2020-07-04T02:41:54Z │ ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ release_3_5_20200706_1 │ 2020-07-07T00:02:48Z │ false │ 18.10 │ 2020-07-07T00:02:48Z │ ║
╟──────────────────────────────────────┼──────────────────────┼────────┼────────────────────┼────────────────────────┼────────────╢
║ sdweb_3314_verification │ 2020-07-22T05:16:37Z │ true │ 18.10 │ 2020-07-22T05:15:30Z │ ║
╚══════════════════════════════════════╧══════════════════════╧════════╧════════════════════╧════════════════════════╧════════════╝
#### sfcc-ci user:create --org xxxxxxxxxxxxxMYORGIDxxxxxxxxxxxxxx --login jdoe@email.org --user '{firstName:John, lastName:Doe, roles: [xchange-user]}'
Error: Authentication invalid. Please (re-)authenticate by running ´sfcc-ci auth:login´ or ´sfcc-ci client:auth´
It clearly shows thare is an issue with everything related to the USER:* functionality.
|
is there any traction on this issue? |
Hi @walter-foulkes, I'm currently clarifying the issue internally and I will let you know, once I have an answer. Regards |
Hi @walter-foulkes, does your account manager user have the role "account admin"? You need this role to perform user-related actions in account manager. Regards |
I would like to take the time to post what I found to get past this issue.
Below is my script that will configure the user for the org and then assign them to the roles the need for the different instances. Here are the steps to set it up. EXAMPLE FILE: ENVIRONMENT: SCRIPT: cd $WORKSPACE echo "#### LOOKING FOR ROLES TO CONFIGURE" echo "#### CONFIGURING ROLES" echo "#### LISTING NEW USERS CONFIG" |
thx Tobias |
Hi @walter-foulkes, I'm glad to hear that the issue could be solved. As the issue is solved, I will close it. All comments and your script will still be accessible from the issue tab. Regards |
Issues while trying to list and create Users Through API
Any help on this would be very useful
./sfcc-ci-macos org:list - This is working fine
Listing Users failing
$ ./sfcc-ci-macos user:list --org (Org Id XXX)
Error: Authentication invalid. Please (re-)authenticate by running ´sfcc-ci auth:login´ or ´sfcc-ci client:auth´
Error: Authentication invalid. Please (re-)authenticate by running ´sfcc-ci auth:login´ or ´sfcc-ci client:auth´
User Creation failing:
$ ./sfcc-ci-macos user:create --org "(Org Id)" --login Email id(xxx@xx.com) --user '{"email": "XXXXXX", "first_name": "XXXXX", "last_name": "XX, "roles": ["xchange-user"]}'
Error: Authentication invalid. Please (re-)authenticate by running ´sfcc-ci auth:login´ or ´sfcc-ci client:auth´
Any help on this would be very helpful. Thanks in advance
The text was updated successfully, but these errors were encountered: