Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

BlackBerry Web Services

Reply
Forums Advisor I
oliwer
Posts: 581
Registered: ‎05-23-2008
My Device: BB10 and WiFi PB
Accepted Solution

[BDS] BlackBerry WebServices - Create Email Profiles

[ Edited ]

Hi everyone,

 

The web service offers a method to create email profiles for users. However it is not possible to create an user email profile which overrides the default values for account name, email address, domain and username.

The CreateUserEmailProfilesRequest of the BlackBerry Web Services for Enterprise Administration gets a list of new email profiles to create as specified by NewUserEmailProfile. The NewUserEmailProfile contains parameters for the user, the email profile and the user specific parameters like account name, email address, domain and username. If these user specific parameters are specified they have no effect because there is no parameter to set the "Override Microsoft Active Directory settings" parameter that is available in the BAS. Without this parameter the user email profile always defaults to the Active Directory values instead of using the parameters in the request.

Request:

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adm="http://ws.rim.com/enterprise/admin">
<soapenv:Header/>
<soapenv:Body>
<adm:CreateUserEmailProfilesRequest>
<adm:metadata>
<adm:locale>en_US</adm:locale>
<adm:clientVersion>6.2.0.20</adm:clientVersion>
<adm:organizationUid>0</adm:organizationUid>
</adm:metadata>
<adm:newUserEmailProfiles>
<adm:user>
<adm:uid>53</adm:uid>
 </adm:user>
<adm:emailProfile>
<adm:uid>2</adm:uid>
 </adm:emailProfile>
 <adm:accountName>DEV-EX@test.com</adm:accountName>
 <adm:emailAddress>DEV-EX@test.com</adm:emailAddress>
 <adm:username>DEV-EX</adm:username>
<adm:domain>test.local</adm:domain>
            <adm:password></adm:password>
         </adm:newUserEmailProfiles>
      </adm:CreateUserEmailProfilesRequest>
   </soapenv:Body> </soapenv:Envelope>
Response:
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <CreateUserEmailProfilesResponse xmlns="http://ws.rim.com/enterprise/admin">
         <metadata>
            <executionTime>2794992300</executionTime>
            <requestUid>ad0a8300-e425-4f4d-a773-e223786a91ce</requestUid>
         </metadata>
         <returnStatus>>
            <code>SUCCESS</code>
            <message/>
         </returnStatus>
         <individualResponses>
            <uid>0-53-2</uid>
            <returnStatus>
               <code>SUCCESS</code>
               <message/>
            </returnStatus>
         </individualResponses>
      </CreateUserEmailProfilesResponse>
   </env:Body> </env:Envelope>
 
Result of GetUserDetails for this user, after executing the CreateUserEmailProfiles request:
 
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
   <env:Header/>
   <env:Body>
      <GetUsersDetailResponse xmlns="http://ws.rim.com/enterprise/admin">
         <metadata>
            <executionTime>1550463700</executionTime>
            <requestUid>c8171dce-ce85-4435-b44e-3f53fa7ae6c8</requestUid>
         </metadata>
         <returnStatus>
            <code>SUCCESS</code>
            <message/>
         </returnStatus>
         <individualResponses>
            <userUid>53</userUid>
            <returnStatus>
              <code>SUCCESS</code>
               <message/>
            </returnStatus>
            <userDetail>
               <uid>53</uid>
               ...                <directUserEmailProfiles>
                  <uid>0-53-2</uid>
                  <organizationUid>0</organizationUid>
                  <emailProfileUid>2</emailProfileUid>
                  <accountName>DEV-EX@wrongdomain.com</accountName>
                  <emailAddress>DEV-EX@wrongdomain.com</emailAddress>
                  <username>DEV-EX</username>
                  <domain>wrongdomain.local</domain>
               </directUserEmailProfiles>
               ...             </userDetail>
         </individualResponses>
      </GetUsersDetailResponse>
   </env:Body> </env:Envelope>
 
 
And it seems there are no possibilities to change the Email Profile later via the webservices. Anyone has a workaround or solution for adding a user without using the default settings for the email profile?
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: [BDS] BlackBerry WebServices - Create Email Profiles

I'm checking into this with our BWS dev folks. Will let you know what I hear back.

Garett
@garettBeuk
--
Goodbye everybody!
Retired
gbeukeboom
Posts: 2,559
Registered: ‎10-16-2009
My Device: BlackBerry Z10

Re: [BDS] BlackBerry WebServices - Create Email Profiles

I just received confirmation that the ability to override the AD settings is not currently available through BWS but it is being added to a future version.

Garett
@garettBeuk
--
Goodbye everybody!
Forums Advisor I
oliwer
Posts: 581
Registered: ‎05-23-2008
My Device: BB10 and WiFi PB

Re: [BDS] BlackBerry WebServices - Create Email Profiles

Thanks for looking to that.