Not seeing right contact status and impossible to delete users in sandbox questions
Hello.
I'm a developer and I'm working in a third party application that integrate your Rainbow API in a project of my customer "XXXX".
I'm following the authentication's schema for "FOR RAINBOW THIRD PARTY APPLICATIONS WITH GUESTS" that I found here https://hub.openrainbow.com/#/documentation/doc/hub/users-authentication because it fits into our app requirements and I've finished the implementation successfully.
I'm using "rainbowSDK.connection.rainbowSandboxSigninWithToken" method, of Rainbow Web SDK, to use your API successfully too from my webapp client (browser) but I've two questions that I can't understand although I've read all the SDK web guide & API documentation.
First of all, why I'm always getting a Contact.status="unknown" after a "rainbowSDK.contacts.searchById" call? My searched contact is logged into your Sandbox and with online status from your desktop client. Maybe it's because I'm calling this method from a user with role "guest"?
And my last question is why I'm always getting all the users even they have been successfully deleted? I'm using the Rainbow CLI to manage my testing users, and after execute the "rbw delete user <ID>" command successfully, the user is still present. Is there a period or time limit to completely have been removed from the database?
Thanks for your answer. Kind regards.
-
Hi,
for more information about the Guest users, please follow this link. https://hub.openrainbow.com/#/documentation/doc/hub/users-in-rainbow.
What method do you use to get all the users, even the one deleted, how can I reproduce this bug?
Konrad
-
Hello,Ok, in https://hub.openrainbow.com/#/documentation/doc/hub/users-in-rainbow says that accounts with GUEST ROLE can’t do search. Maybe the problem is that I’m missing something during the guest user account creation…Can you check if this is a right POST call?? I create an account with this API callPOSThttps://sandbox.openrainbow.com/api/rainbow/admin/v1.0/users
REQUEST BODY{“accountType”: “free”,
“emails”: [
{
“email”: “my_guest_email@myguestdomain.com”,
“type”: “other"
]
],
“firstName”: "My guest firstname”,
“lastName”: “My guest lastname”,
“loginEmail”: “my_unique_guest_email@myguestdomain.com”,
“country”: “ESP”,
“timezone”: "Europe/Madrid”,
“password”: “my_unique_password_with_Numb3rs_special_ch*racters”,
“roles”: [
“guest"
],
];After the successfully created account, I have the Rainbow <USER_ID> value, and I can see the user is listed with the RainbowCLI using this command:$ rbw users --role=guestFinally If I execute the RainbowCLI command$ rbw delete user <USER_ID>But the user never disappears from the database. Example:$ rbw delete user 5e884b5635c8367f99b96c83 --ncWelcome to Alcatel-Lucent Enterprise Rainbow CLIYou are logged in as romani.david@gmail.com on platform sandbox.openrainbow.comYour roles user + admin + app_adminYour level company_admin > app_admin > userAction > Delete user '5e884b5635c8367f99b96c83'User deleted '5e884b5635c8367f99b96c83'✓ Command successfully completed$ rbw users --role=guestWelcome to Alcatel-Lucent Enterprise Rainbow CLIYou are logged in as romani.david@gmail.com on platform sandbox.openrainbow.comYour roles user + admin + app_adminYour level company_admin > app_admin > userAction > List users# Name LoginEmail Company Account Roles Active ID- ---- ---------- ------- ------- ----- ------ --45 Test Name 5e884b50b74c2_fk_rbw_email@gmail.com Flux free guest true 5e884b5635c8367f99b96c83Kind regards.
Iniciar sesión para dejar un comentario.
Comentarios
2 comentarios