EndUser access to getUsers with option against other user attributes?

Howdy,
I am trying to allow an end user to select their account name during our account claiming process. I am running into a problem validating their selected username. I am using a call to getUsers with QueryOptions based on their account name and Uname attributes. (we are storing our username in an attribute called Uname). This works when I run the rule in BPE as my admin user. However, during the account claiming process, the rule is executing from the claim username form, and the end user is logged. Since the getUsers runs against the context of the logged in user, my queries are not able to see other users when they query for the name or Uname. There for the same queries are coming back false for the end user, but true for the admin. I'm assuming I need to run the rule as an admin to fix the problem. I added the following RunAsUser entry to the rule:
<Rule name='alreadyExists'>
<Description>This rule checks to see if a username is already being used by the system.</Description>
<Comments>It returns true if the username already exists, false if the username&#xA;does not exist.</Comments>
<RuleArgument name='potentialName'>
<Comments>The potential username.</Comments>
</RuleArgument>
<RunAsUser>
<ObjectRef type='User' id='#ID#Configurator' name='Configurator'/>
</RunAsUser>
<block name='outer-check' trace='true'>
<cond>
<eq>
<ref>potentialName</ref>
<null/>
</eq>
<i>0</i>
<block name='compairison' trace='true'>
<defvar name='queryOptionsOne'>
<new class='com.waveset.object.QueryOptions'/>
</defvar>
<defvar name='queryOptionsTwo'>
<new class='com.waveset.object.QueryOptions'/>
</defvar>
<invoke name='addCondition'>
<ref>queryOptionsOne</ref>
<s>Uname</s>
<ref>potentialName</ref>
</invoke>
<invoke name='addCondition'>
<ref>queryOptionsTwo</ref>
<s>name</s>
<ref>potentialName</ref>
</invoke>
<or>
<neq>
<invoke name='getUsers' class='com.waveset.ui.FormUtil'>
<ref>context</ref>
<ref>queryOptionsOne</ref>
</invoke>
<null/>
</neq>
<neq>
<invoke name='getUsers' class='com.waveset.ui.FormUtil'>
<ref>context</ref>
<ref>queryOptionsTwo</ref>
</invoke>
<null/>
</neq>
</or>
</block>
</cond>
</block>
</Rule>
But it still isn't working. Is there something else I should be doing?

Hi Jim,
your problem is caused by the fact that runAs rules do not switch their context in all cases. It has been that way since LH 4.0. I'm afraid that the only work around that i am aware of (other then giving redicilus rights to end users) is to use unsuported API.
<invoke name="getCache">
  <invoke name="getServer" class="com.waveset.server.Server"/>
</invoke>gives you an instance of object cache (com.waveset.object.ObjectCache) without any limitations. I'm to lazy right now to test your case but with an object cache in server context you should be able to do searches without restrictions. For example have a look at
getObjects(Type type, java.util.List attrConds)
which looks ok for your intend.
Regards,
Patrick
Message was edited by:
Patrick.Wehinger

Similar Messages

  • Read only access on abc scheema to all other users

    i want to give read only access on abc scheema to all other users. which command will be used.

    Hi
    Create a role first
    CREATE ROLE ABC_SELECTONLY_ROLE IDENTIFIED BY anypassword;
    Assign SELECT permissions to that role.
    spool c:\grantprivs.lst
    SELECT 'GRANT SELECT ON ABC.'||OBJECT_NAME||' TO ABC_SELECTONLY_ROLE;'
    FROM DBA_OBJECTS
    WHERE OWNER LIKE 'ABC'
    AND OBJECT_TYPE IN ('TABLE', 'VIEW');
    spool off
    @c:\grantprivs.lst
    Attach role to users (EXCLUDE USERS AS YOU LIKE. In this example we have excluded SYS, SYSTEM etc)
    spool c:\attachrole.lst
    SELECT 'GRANT ABC_SELECTONLY_ROLE TO '||USERNAME||';'
    FROM DBA_USERS
    WHERE USERNAME NOT IN ('SYS','SYSTEM',DBSNMP','SYSMAN');
    spool off
    @c:\attachrole.lst
    You may wish to create private synonyms for the users.
    CREATE SYNONYM USER1.TABLENAME FOR ABC.TABLENAME;
    Regards
    Adnan

  • How to hide folder in PCD  with respect to other user

    Hi,
         I want to hide some folder in PCD,suppose any other user enter into portal,he is not able to view the particular folder with out my permission.
        for eg."X" user hide one folder means,"Y" user not possible to view the hided folder.
         can any one tell the steps,how to do this functionality.
    Thanks in advance,
    Ashok

    System admin -> Permissions -> Portal Content -> Your folder or object. Double click.
    Cheers

  • Error creating view with tables of other user

    I am creating of view containing two tables of another user. I
    am a dba-user.
    The statement looks like this:
    CREATE VIEW TEST
    (SELECT ...
    FROM DWH.TABLE_A A, DWH.TABLE_B B
    WHERE A.ID = B.ID)
    I get an error-message (ORA-00942: Table or view not found).
    When I create the view as user DWH, everything went OK. I don't
    think it has something to do with privileges since I am the dba-
    user.
    How can I create a view using other users tables?

    Hi
    To create view on table of another user you need to have select
    privilege grant directly to you - not to role granted to you. In
    your case you can select tables because you have granted dba
    role and it has select any table prvivilege, but you havent
    directly granted this rights without role.
    Regards

  • Disabling SharePoint Access Website "Settings" Under "Options" for Certain user

    I just published an access database to sharepoint. However, after I set some user as contributor, those
    users can see structure of my database, and export tables to excel directly. Is there anyway that we can remove the access to "Setting"?

    Hi Kelvin,
    Do you have any updates?
    Best Regards
    Zhengyu Guo
    TechNet Community Support

  • Access Seller Dashboard with more than one user

    Hello everybody,
    I have created a Company account to publish SharePoint Apps to the Office Store. Although we are registered as a company, I cannot find a way to let other colleagues access the Seller Dashboard.
    The problem is that I have to log in using my personal LiveID. I would give my credentials to others if that account weren't linked to all kinds of personal stuff (i.e. OneDrive, Outlook.com, ...)
    Is there any way to invite others to my Seller Dashboard?
    Cheers,
    Robert
    Robert Draeger - Layer2 http://www.layer2.de

    Hi Geoff,
    Apologies for the late reply. Adrian's response is still true as of today, and there are no additional updates on this topic. I can tell you that the most up to date information will be posted on the
    Office Dev Center. Thanks for posting!
    -Jonathan
    Windows and Windows Phone Dev Center Support
    Office Store Developer Support
    Send us your feedback about the Windows Platform

  • OIM Email Notification issue with custom E-mail user attribute

    Hi All,
    We have a requirement where we need to send e-mail notification programmatically after a OIM account is created for the user through trusted reconciliation. Post process event handler is being used for this. We have created our own Custom Notification Event, created new Notification Template of the type Custom Notification Event.
    For storing e-mail address for every OIM user we are using custom attribute "Email Home". Now the problem is NotificationService is by default picking e-mail address from OTB attribute "Email". Is there a simple way to pick the E-mail address from custom attribute? Below is sample code that we are working on. Any ideas on this would be very helpful.
    NotificationService notService = Platform.getService(NotificationService.class);
    NotificationEvent event = new NotificationEvent();
    String[] receiverUserIds= {"<<*Comma separated list of OIM USER IDs to whom notification is to be sent*>>" }; sets the email address in the OTB "Email" attribute as receivers
    LOGGER.info("Receiver User ID set");
    event.setUserIds(receiverUserIds);
    event.setTemplateName(poTemplateName);
    event.setSender("<<*OIM User ID of sender*>>"); /// sets the email address in the OTB "Email" attribute as sender
    HashMap<String, Object> templateParams = new HashMap<String, Object>();
    templateParams.put("usr_login",poUserId);
    LOGGER.info("template Param set" templateParams);+
    event.setParams(templateParams);
    notService.notify(event);
    Thanks

    Hi,
    any updates on this issue?
    is there any possibility to resend the old notifications manually?
    Thanks,
    Prasad

  • [SOLVED] firefox "open with" option missing from d

    Has anyone noticed that, in firefox 2, the "Save/OpenWith/Cancel dialog has changed to only "Save/Cancel" (with no option to open the file with a particular application)?
    For instance, clicking on the first "Excel" file type on this Web page only gives me a Save or Cancel option.  With firefox 1.5 there was an additional option for "Open With".  In other words, there is no way I can instantly open the document with Open Office using a temporary location.  I have  to first save it to my home directory and then open it with Open Office or something.
    When using firefox 2 with Web-based email clients like Yahoo! Mail, it's annoying that I can't just instantly open attachments (like PDFs).  Instead, I have to first save everything.
    Is there something I can change in about:config to get back the 1.5 behavior?

    No, I already checked my firefox preferences.  The preferences explain the behavior of Excel files (set to always save).   But, for me, the "Open with" option went missing for PDF attachments and some other unknown binary file types.
    I have PDFs set to open with acroread in FF preferences, so that seems okay.  Nothing in the filetypes configuration has changed.  In fact, the PDFs work okay (with acroread plugin) when I click a PDF link on a random web page.  It just doesn't work in email attachments  like in gmail (and, it used to before).  It used to be that it would give me the "Open With" dialog and I'd open the document with acroread (external application, not the plugin).  Now, it forces me to save or cancel.  I noticed it happens with some other unknown binary file types, too (I thought these were also supposed give me the "Open with" option).

  • Problem accessing hard drive for more than one user at the same time

    Hello all,
    I recently bought a 2nd generation AirPort Extreeme 802.11n to replace a cheapo wireless router. The main reason I wanted to get the AirPort was so I could attach a USB hard drive which holds iTunes music files Originaly I had a G4 MDD and this was a second internal hard drive. Since my wife and son also share my Mac, we stored the iTunes music folder there, so we could all access the files. That worked fine.
    Then I got a early 2009 iMac and gave my wife the G4. My son also has a G3 iBook, using the wireless internet conection. At first I had the drive in an external case attached via Firewire. Both my iMac and my wife's G4 are attached to the network using ethernet, not wireless. She was able to access the music files so long as my Mac was on, but the connection was flaky.
    So as mentioned, I picked up a used AirPort Extreme from OWC, mainly to attach the hard drive, since it's no longer in my Mac. It took some fiddling, and I was honestly surpsied that the APE was trickier to set up than expected, but now I have the external drive mounting, and we can all access the files from any of the Macs in the house. It works great except for one thing. If I'm logged into my iMac, and then another family member logs in on the same iMac, we don't all have access to the hard drive. It's still mounted, but the you have no permission to view the files on it.
    Then if I remount it, I can access the files, but now the other user can't.
    So in a nutshell, only one user can access the drive at the same time from the iMac, but we can all access it from different Macs.
    Anyone have an idea of why this is happening and how to remidy it?

    This is the boilerplate text often used in connection to saving to a network (please NOTE the part where it explains that normally, it does work, but that it is impossible to troubleshoot someone else's network remotely, and that's why it's not supported by Adobe):
    If you are opening files over a network or saving them to a network server, please cease and desist immediately in the event you are currently experiencing problems with one or more files. Working across a network is not supported.
    See: 
    http://kb2.adobe.com/cps/406/kb406793.html
      Copy the CLOSED file from your server to your local hard disk, work on it, save it again to your local hard disk, close it, and copy the closed file back to the server.
         Of course, the fact that Adobe does not support working across a network does not necessarily mean it won't work.   It should.
        Adobe's position is that there are too many variables in a network environment for them to guarantee that everything will work correctly in every network, especially given the fact that if something does not work properly, it's probably the network's fault, and Adobe has no way of troubleshooting your network.
      If you can't work locally, you are on your own, and if something happens, you're on your own. If you must work from a server, make sure your network administrator is a competent professional.
    When problems arise, a lot of valuable work can be lost.

  • HT1527 I have windows 8.1 and cannot access itunes store even creating a new apple id. With other users on the same computer I can access itunes store. How can I solve this?

    I have windows 8.1 and cannot access itunes store even creating a new apple id. With other users on the same computer I can access itunes store. How can I solve this?

    i had the same problem before using a fresh install of Windows 8.1.  I have resolved this issue by running the program compatibility wizard.  This I did by right-clicking on the iTunes icon in the desktop, selecting Troubleshoot compatibility, waited for it to detect compatibility issues and when presented with the following options: 1.) Try recommended settings; 2.) Troubleshoot program, I chose the latter.  When asked what problems I noticed, I checked the following: "The program worked in earlier versions of Windows but won't install or run" and "The program requires additional permission"
    After that, it tired to resolve the issue, and provided the necessary settings to run iTunes.  Now it's running flawlessly.  I have Avast anti-virus installed though.
    HTH!

  • I'm suddenly unable to join my Airport network with my PowerBook G4.  I am able to access my network with all of my other devices.  How can I once again establish access using my PowerBook G4.

    I'm suddenly unable to join my Airport network with my PowerBook G4.  I am able to access my network with all of my other devices.  How can I once again establish access using my PowerBook G4?

    Bruce777 solved this for me, thank you Bruce! My printer now works perfectly on my new wifi network!
    Bruce's  instructions, for anyone else having the same issue:
    - delete any previously set up printers
    - scrub old hp software and update software to get the hp 2.8 drivers
    - remove the usb cable from the printer if you have one connected
    - reset the printer network to hpsetup (hold down the power button and press network button 2x and then cancel 3x, release power button.)
    - print out the wireless network test report (hold down the network button and press the update button 2x). verify the network name / ssid is hsetup
    - got to sys prefs > network and change the mac wireless network to hpsetup
    - go to the sys pref > print scan
    - add the HP 8000 printer
    - click on the options and supplies button and click on the Show Printer Webpage
    - click on the networking tab > wireless in the left pane > start network wizard and change the network from hpsetup to your network
    - finish (this page may freeze up.  close the browser)
    - go back to the sys prefs and change the wireless network back to your networt
    - go to the printer and print out the wireless network test report (press network button and update button 2x).  Check that the SSID is your network
    - go to sys prefs > print scan > select your printer > options & supplies > show printer webpage > network info (check ssid and compare to wireless network test report)
    - try printing something to your printer.  It might take a little time the first print.

  • Finding the "enable accessibility and reflow with tagged pdf" option in acrobat pro x?

    Hi I want to export the higlighted text from a .pdf to an office word doc. , but when I click the "export to word" option, I get a notice telline me to find the enable accessibility and reflow with tagged pdf option, now I've just clicked everything clickable in adobe acrobat and just can't find it. help its
    Any kind of help its apreciated.

    That's an option used when the original PDF file is created in Word. It's not something within Acrobat.

  • I installed elements 12, it won't open, a screen pops up with options for e-12 and 4 other language

    I installed elements 12, it won't open, a screen pops up with options for e-12 and 4 other languages.  When I click Elements 12 a screen pops up with a red install icon, I click it and it askes for the serial number. It won't let me type in letters only numbers. I already did the serial number once. How do I get this to work? I don't want to be a programer!  

    attach a screenshot of what pops up after clicking pse 12, http://forums.adobe.com/thread/963429

  • Where in gods name is the homesharing button, I see a little cloud that you cannot click on and tells you what account you have but thats is. There's an option for turning on and off homesharing, but no button to access the actual library of the other PC

    Where in god’s name is the homesharing button, I see a little cloud that you cannot click on and tells you what account you have but that's it. There's an option for turning on and off homesharing, but no button to access the actual library of the other PC. On either PCs. Both are logged in and both are registered for homesharing. however because apple keeps updating and moving things around for no reason there appears to be no way of accessing the homsharing button in the latest version of itunes. the website refers to " Once set up, all the libraries from your computers you've enabled Home Sharing on will show up in the SHARED area of iTunes:" well I have searched all over in the recent itunes versions and there is no "shared area" to be found.
    Please find the attachment of a screen cap of my itunes.
    If anyone can help by telling me where it has been moved to or if it even still exists that would be much appreciated.

    Welcome to the Apple Community.

  • I bought a new laptop and can access my itunes library but when i try to add purchased playlist songs to my ipod message appears asking if I'm ok with erasing all other songs on the ipod. Help needed.

    I bought a new laptop and can access my itunes library but when i try to add purchased playlist songs to my ipod message appears asking if I'm ok with erasing all other songs on the ipod. How do I add purchased playlist to ipod without erasing existing ipod playlists?

    cujoftw wrote:
    wow ... I get a headache just trying to read what you just said. I went and read how to migrate my library and found that you can only migrate purchased media.
    No, you can easily migrate your entire library from one working compter to another.
    If you fail to backup or migrate your library and find yourself with nothing but a new empty computer and a device full of content iTunes is designed to only recover the iTunes purchased content, however third party tools can help recover everything if needed.
    tt2

Maybe you are looking for