How to delete a user using the BWS

Hello

I'm working on a little app that can remove multiple users from the BOTTOM. I use the BWS for this, but something is not clear.

My function is:

        public static bool DeleteUser(string[] inputEmail)
        {
            DeleteUsersRequest UserDeleteRequest = new DeleteUsersRequest();
            UserDeleteRequest.metadata = BasicSettingData.Metadata;

            User egy = new User();
            User[] DeletableUserArray = new User[1]{egy};
            DeletableUserArray[0].emailAddresses = inputEmail;
            UserDeleteRequest.users = DeletableUserArray;

            DeleteUsersResponse UserDeleteResponse = new DeleteUsersResponse();

            try
            {
                UserDeleteResponse = BasicSettingData.bwsService.deleteUsers(UserDeleteRequest);
            }
            catch (Exception e)
            {
                MessageBox.Show( e.Message + "     " + e.StackTrace);
                return false;
            }
            if (UserDeleteResponse.returnStatus.code.Equals("SUCCESS"))
            {
                MessageBox.Show("trololololololo");
            }

            return true;

The service lift any error or exception, however, users are not deleted. I am defenetly missed something, just don't know what.

In your function, you create the user object, and then use this same user object try deleting. Instead, you will need to enter the users to remove an appeal from getUsers().

Tags: BlackBerry Developers

Similar Questions

  • How can I know the size of the screen of the moniter of users using the Acrobat SDK?

    How can I know the size of the screen of the moniter of users using the Acrobat SDK? I need to know how much real estate sreen which is available on the moniter to users. Is there some call I can do the SDK to find out the maximum X and is coordinated?

    Thank you

    Gregory

    Just responded to your other thread:

    AVWindowGetDesktopBounds()

    Even takes into account the task bar on Windows, the menu bar on Mac, etc.

  • How do know us that now the user using the server component

    Hi all

    Suppose a user loged in to the siebel application.and requested for an object manager/component.and as the user who got. But this particular component is active in a portion so how do we know that now the user using the component.means Server user is in what server to use this object manager component.


    Concerning
    Remy

    Using Server Manager, to connect without specifying a server, then run a command to sessions list for your device and you will see the user and the server.
    Best regards
    EvtLoglvl

  • How to support multiple users at the same time?

    Hi all

    I have a Labview program that controls a parser via GPIB connector. When the user uses the software, user B must wait is made. But in fact, the parser is not very busy, when the user uses the software.

    I want A, B, C and D of the user may use the software at the same time. just as we can open several Web sites at the same time.

    How can I program the software, so that software can be opened several times? Do you have any examples?

    Thank you very much.

    Steven

    Parallel SALVATION,

    you want to use the same material in different forums at the same time? What happens if the user uses a different device as user B setting?

    There could be problems to access the port of connection (GPIB card) at the same time too...

    It's the same usual problem, you'll have to any shared resource. Instead of calling the same software several times at the same time you should make your software up-to-date with multiple users...

  • How can I reset passwords using the hidden administrator account?

    Original title: hidden admin account

    How can you reset pass using the hidden account dmin. ? That can make the admin account hidden?

    I have windows vista and I am the only administrator and user of my laptop.

    Hello

    You cannot use the hidden administrator account to reset the password. If you forget your only means of password to reset using the password reset disk. See the article below for further assistance.
    What to do if you forget your Windows password
    http://Windows.Microsoft.com/en-us/Windows-Vista/what-to-do-if-you-forget-your-Windows-password

    Activate hidden administrator account gives you access to the files or the privileges if you are denied access in some cases.

    Hope this information helps.

    Thank you, and in what concerns:
    Shekhar S - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.
    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Create/modify users using the RequestService API

    Hello

    I would like to create or modify users of IOM, by using the API RequestService (RequestService (Oracle Fusion Middleware Java QAnywhere for Oracle Identity Manager)), but currently, I do not know how!

    Currently I use the UserManager API to create/modify users:

    UserManager userManager = Platform.getService(UserManager.class);
    HashMap<String, Object> userAttributeValueMap = new HashMap<String,Object>();
    User user = new User("MyNewOIMUser", userAttributeValueMap);
    userManager.create(user);
    

    It works very well, but it is not possible to 'Create the user approval Workflows' using this trigger mechanism.  (use this code snippet in a custom scheduled task)

    I've already found some examples of code, using the RequestService API, but nobody uses this api to create/modify users.  (https://java.net/projects/openptk/sources/svn/show/branches/Oracle/OIM11g/examples/java/OIMClient/src/oim/client/request)

    Ideas/tips/code samples to specify this use case?

    BR,

    Mint

    This API allows you to submit the application:

    Oracle Fusion Middleware Java QAnywhere for Oracle Identity Manager

    doOperation (RequestData requestData, OIMService.Intent intention)

    This will allow you to submit and do force a request, direct provision or use some permissions has the person making the presentation for administrative roles to determine whether it is direct or claim.

    -Kevin

  • How to delete a playlist from the iphone 6

    How to delete a playlist from the iphone 6

    Open iTunes, plug in the iPhone, what you select ant to be on the iPhone, sync

  • How to create IT strategy using the BES administrator API

    Hi all

    Can tell me, how to create IT strategy using the BES administrator API.

    Please provide me with the code example.

    Thanks in advance.

    Kind regards

    Sampath

    Hi Sebastian,.

    The Administration of BlackBerry API does not support the creation of it political. This feature is currently with the development of control and review for a future version of the BlackBerry Web Services for the Administration of the company.

    Kind regards

  • How can I read or use the unallocated Partition?

    My external hard drive has two partitions. We're "Healthy (primary partition)", the other is "unallocated".

    I can see health as a disc but not the unallocated partition. How can I read or use the unallocated Partition?

    When I right click on the partition menu popup are faded/not usable.

    You can create a partition in the unallocated in disk management space.

    Right-click on the unallocated space and create a partition.

    If you have a partition on the disk using all the space you need to set as GPT instead of MBR.  Windows will not accept a partition of about 2 GB max on a game of MBR disk.

  • How sleep windows 7/8 using the command line?

    How sleep windows 7/8 using the command line?

    for example:-l is for disconnection, what command should I give to sleep?

    Hello

    Powercfg command-line options
    http://TechNet.Microsoft.com/en-us/library/cc748940 (v = WS.10) .aspx

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle="" -="" mark="" twain="" said="" it="">

  • How to delete a contact in the menu 'To' drop down when starting a new email?

    How to delete a contact in the menu 'To' drop down when starting a new email?  Email is no longer in my list of contacts, but he continues to appear in the menu drop down and too often I am wrong send something to the wrong email since it is at the top of the drop-down list.

    2 possibilities:

    1. you have an invitation, that you still need to answer. The name stays on until you refuse the invitation. Then it will go away.

    Open outlook.com > top left, place your cursor on the Outlook logo > an arrow will appear > click on the arrow > click on people > here's the window of your people.
    Toolbar at the top, click on manage the > click on View Invitations > do you see an invitation? If so, decline the prompt will remove the names of th.
    2. There may be a suggestion of the application of the 'AutoComplete suggestion» It gives you the names so that you, at the same time, sent emails.
    You can remove this suggestion by doing this...

    Open outlook.com > top right, next to your name, click on the gear icon > click on e-mail settings more > under customization of Outlook, click Advanced Privacy settings > click the front point 'Only suggest people in my contact list' > click on save when finished.

    t-4-2

  • Whenever I start my PC, a message appears, says another user using the same IP address. Is this a problem

    Whenever I start my PC, a message appears, says another user using the same IP address.

    Is this a problem

    Yes.  One or both may not work properly.  If you use static IP ADDRESS a simple reboot of all devices should correct this.

  • If I subscribe to the applications Adobe CC everyone (students and teachers), how many computers can I use the package on?

    If I subscribe to the applications Adobe CC all (students and teachers).

    How many computers can I use the package?

    Please check the FAQ - Licensing FAQ: can I install Creative Cloud on several computers?

    Thank you

    Bev

  • Photography plan Cloud creative student and Teacher Edition (one year) and no idea of how to get and start using the programs?

    So I just brought the creative plan Cloud photography student and Teacher Edition (one year) and no idea of how to get and start using the programs?

    Hello

    Go to creative.adobe.com and you identify with your Adobe ID

    From there, you can download the applications you purchased.

    Normally, you are taken there immediately after the purchase.

  • How can I continue to use the serial number I already paid?

    . I have a student 2013 Adobe Suite, but when I download creative cloud on my new laptop, there is not even a prompt to enter the serial number? How can I continue to use the serial number I already paid?

    To continue to use the serial you paid for you simply continue using the software that the license has been purchased is valid for (which is all what you have bought in 2013).  Your Adobe Suite has no relationship with the creative cloud.  Your serial number is only valid for the product for which it was purchased.  If you want to use cloud products, you must purchase a subscription.

    Creative cloud plans

    https://creative.Adobe.com/plans

Maybe you are looking for