409 Error while creating App User (.NET)
So I'm creating a script that creates multiple app users.
But after the first user is created, the function wants to keep adding users to the same id as the first one, so I get a 409 error: "An app user already exists for this external_app_user_id"
When doing this from the commandline I have no issues...
Does anyone have an idea as to what could be causing this?
Here the function I'm using:
BoxUserRequest userReq = new BoxUserRequest()
{
Name = userName,
ExternalAppUserId = "external-id",
IsPlatformAccessOnly = true //This makes the user an app user!
};
BoxUser u = await admin.UsersManager.CreateEnterpriseUserAsync(userReq);
-
Hey
Thanks for posting in the Developer Forums! It looks like the ExternalAppUserId value is user defined, so you'd want to pass a new value in that field every time you create a new app user. That being said, it looks like the command will work without that field being passed as well, so maybe you can simply omit that field and still get the results you wanted.
Let me know if that doesn't work!
Please sign in to leave a comment.
Comments
1 comment