ipperson@User returned as userId by REST API
Resolved
Hi guys,
Creating a user in a client org via the REST API.
Get security token via /api/refresh-tokens with the body
{
"userName":"admin@domain.co.uk",
"password":"password",
"clientOrgRef":"testRefId"
}
Create user in client org via /api/admin/users?uniqueUsers=true & the body
[{
"userId":"bob@testpie.com",
"emailAddress":"bob@testpie.com",
"roleCode":"YFREPORTCONSUMER",
"password":"test",
"firstName":"Bob",
"lastName":"PieTester",
"languageCode":"EN",
"timeZoneCode":"GMT"
}]
Attached is the response I get....any idea what I've done wrong or if it's a bug...?
Lex
Files:
UserIdConflict.png
Hello Lex,
I am investigating this and will let you know what I find out.
Regards,
David
Hello Lex,
I am investigating this and will let you know what I find out.
Regards,
David
Hi Lex,
Sorry for the delay in getting back to you. I'm having problems getting my Postman testing to work. I just wanted to let you know I hadn't forgotten about you!
I'll continue working on it and I'll let you know as soon as I have something.
David
Hi Lex,
Sorry for the delay in getting back to you. I'm having problems getting my Postman testing to work. I just wanted to let you know I hadn't forgotten about you!
I'll continue working on it and I'll let you know as soon as I have something.
David
Hi Lex,
Thank you for the update. I'm glad you are up and running!
I'm still going to chase up why the userID is different when uniqueUsers=true flag is sent. I'm curious now! I'll let you know what I find out.
David
Hi Lex,
Thank you for the update. I'm glad you are up and running!
I'm still going to chase up why the userID is different when uniqueUsers=true flag is sent. I'm curious now! I'll let you know what I find out.
David
Hi Lex,
I have confirmed this is intended functionality. When using uniqueUser, the username assigned is <ipid>@User to ensure unique id’s. This was a feature of the SOAP webservices. When used with allow duplicate emails, it means that the onboarding would not throw an error if an existing username was used.
Have a good one!
David
Hi Lex,
I have confirmed this is intended functionality. When using uniqueUser, the username assigned is <ipid>@User to ensure unique id’s. This was a feature of the SOAP webservices. When used with allow duplicate emails, it means that the onboarding would not throw an error if an existing username was used.
Have a good one!
David
Replies have been locked on this page!