01-27-2012 07:10 AM
Great! Sounds like some progress. This new error seems to point to the fact that the user is not visible in AD from the BAS. Can you verify that you can find the user in a search from the BAS and that all information (email address, display name etc) matches?
02-01-2012 03:15 PM
Hi Garett- I just wanted to let you know, in case it matters, that when the following code was used, I continued to get the internal error message. When I commented it out, the user was created..
//use this mail account AccountAttributes accountAttributes=new AccountAttributes(); accountAttributes.setEmailAddress("email@example.com
03-26-2012 11:17 AM
We are facing the same issue. When we try to provide email address the BWS says it cannot create user. The exact return status code and message are as follows,
message="Failed to create user"
GetRolesRequest requestRole = new GetRolesRequest();
requestRole.metadata = Metadata;
//get all roles
GetRolesResponse responseRole = BES.bwsService.getRoles(requestRole);
CreateUsersRequest cUR = new CreateUsersRequest();
cUR.metadata = BES.Metadata;
NewUser nU = new NewUser();
UserAttributes uAttribs = new UserAttributes();
//active directory authentication
uAttribs.displayName ="Research Test2";
uAttribs.roleUid = responseRole.roles.uid;
AccountAttributes aAttribs = new AccountAttributes();
aAttribs.emailAddress = "ResearchTest2@dev.com";
GetServersRequest serverRequest = new GetServersRequest();
serverRequest.metadata = BES.Metadata;
serverRequest.hostName = "";
GetServersResponse serversResponse = bwsService.getServers(serverRequest);
nU.server = serversResponse.servers;
nU.accountAttributes = aAttribs;
nU.userAttributes = uAttribs;
// Server sr = new Server();
cUR.newUsers = new NewUser;
cUR.newUsers = nU;
CreateUsersResponse cUResponse = BES.bwsService.createUsers(cUR);
03-26-2012 11:19 AM
Can you create this same user through the BAS console? Does the user need a BlackBerry smartphone account as well as login access to the BAS?
03-26-2012 11:24 AM
Thanks for such a quick response. We are able to create the same user through BAS console.
Following is our use case,
a) We create a AD user account in BES.
b) We set a activation password for that user.
c) User activates his/her blackberry device.
d) We sycn with BES to bring in the activated device under that specific AD account .
03-26-2012 11:27 AM
Does the user need a BlackBerry smartphone account as well as login access to the BAS?
03-26-2012 11:30 AM
If they just require a smartphone account and not BAS access then try commenting out the UserAttributes object, this is only required for BAS accounts.