XPRESS code to find all the users with a specific role of admin.

I've been playing for some time a way to get a list of all users who have received a special role of Admin. I have a role for which I would like a specific subset of users to approvers on it, and I want to greate a rule that checks for people with a special role of Admin and then return this list as people to be approvers on the role.

I was not able to find an easy way to write this code. Any who cross this before or have another suggestion?

Thank you.

Below the code to find the user is based on the condition.



: display.session
User

conditions


AdminRoles
contains
adminRoleName




Published by: Jay on March 7, 2012 04:03

Tags: Oracle

Similar Questions

  • find all the documents with a link specific filePath

    Hello

    I am trying to find the name of all the documents with a link specific filePath.

    Before you run this script I need to know that nothing bad is going to pass, so please can someone give me some advice?

    var myFolder = file (' A:\Work in progress/Jake/Indd files / ');
    myDocs var = [];
    var myFiles = myFolder.getFiles("*");

    for (i = 0; i < myFiles.length; i ++) {}

    $.writeln (myFiles [i] p:System.NET.mail.MailAddress.DisplayName);
    var doc is myFiles [i] .open ();.
    links documentaries var = doc.links;
    for (j = 0; j < docLinks.length; j ++) {}
    If (docLinks [i] .filePath = 'A:\Work in progress\Jake\Image Links\Aqualimb 100kg\Aqua Limb.eps') {}
    myDocs.push (doc.name)
    }
    doc. Close();
    }

    Try this

    var myFolder = Folder ("A:\Work in progress/Jake/Indd Files/");
    var myDocs=[];
    var myFiles = myFolder.getFiles("*.*");
    for (i=0;i		   
  • GREP with lookaround: impossible to find all the "." with the exception of the end of the paragraph

    Hi all

    I'm actually build an expression grep to run in an InDesign document to find all the '. '. (full stop) without any whitespace that follows, except those standing at the end of a paragraph. My approach:

    \. (?! \s) (?! $)

    For some reason any '$' does not work when it is used as a negative lookahead. In the following example, only the first '. ' is found.

    test. test.test.test.

    Not used as anticipation as here...

    \. (?! \s) [^$]


    It works very well. But unfortunately I am I need the search for only the "." is divided as a result.

    I would appreciate any advice.

    Thank you very much!

    Jan

    This grep finds all the "." without space after except the one at the end of the paragraph

    (?<>

  • Script to find all the VMS with dates/no tools installed.

    Hey,.

    I need help guys.  I need a script that finds all VMS in vCenter which do not have the tools installed or tools or outdated.  I also need the script to generate the following data in a CSV file.  Name of the virtual machine and the State of the tools (not installed or outdated).

    Thank you guys.

    Good suggestion. 'Get-View - ViewType VirtualMachine' is much faster than ' Get - VM | Get-View»

    You inspired me to go at maximum speed. So I moved all the filtering also to the cmdlet Get-View. The following script is used in my environment about 30% faster than what you suggested. My first script took me 1 minute 50 seconds. Your script 1,624 seconds. And the following script 1,110 seconds in an environment with about 500 virtual machines...

    Get-View -ViewType VirtualMachine -Property Name,Guest.ToolsStatus -Filter @{
      "Config.Template"="False";"Guest.ToolsStatus"="toolsNotInstalled|toolsNotRunning|toolsOld"} | `
    Select-Object @{N="Name";E={$_.Name}},@{Name="ToolsStatus";E={$_.Guest.ToolsStatus}} | `
    Export-CSV -Path VmToolsStatus.csv -NoTypeInformation -UseCulture
    

    "Config.Template"="False" filter models so that you get only the virtual machines.

    "Guest.ToolsStatus"="toolsNotInstalled | toolsNotRunning | toolsOld" returns invited with ToolsStatus toolsNotInstalled or toolsNotRunning or toolsOld.

    Thanks to Eric Wannemacher to show me how to use regular expressions in a Get - view filter in his blogpost: VMware PowerCLI and Get-View filters.

  • PSE7: Find all the photos with a caption?

    I'm in PSE7.

    I have a subset of my pictures selected via a tag.

    Now, I want to find all images in this set which have a legend at all.

    So I do a Find / legend or note.

    Now in the next dialog is box possible I can get a wild card or something

    who will find any image that has something in it at all?

    Thanks for any help!

    You can also see the legend in the properties pane.  Not the window > properties to make the visible component and then click the arrows down double in the upper right of the pane to dock it in the keywords pane.  Now you can have several vignettes showing, and as you click on each of them, its properties (including the legend) is displayed in the properties pane.

    Another thing, you can try, if you do not use the feature of star ratings: as review you each picture, press the number 5 to set its stars out of 5 and not sure you want to change the photo.  Then, when you want to see all of the suchphotos, in the top-right search bar, click on the 5th star, and show that these photos you marked.

    A slower option is to assign a label to the photo that see you.  Then you click on the tag to see all the photos you added.

  • How can I find all the occurrences of a specific font * size * within a PDF file?

    I want to be able to search for all text in the document. I know that the PDF language actually does not specify if the text is exposing, then as a proxy I want to use a specific font size, which will work in the case of documents that I work on.

    Is there a way I can do this with Javascript?

    If you have Acrobat Pro, you can use the preflight tools to get information about fonts and sizes of police.

  • Problem opening pdf files.  I have Acrobat Reader DC/Windows by default, but when I click on the file, a file conversion screen with all these codes. Must use the "open with" function which is a nuisance.  Why it will not default?

    Problem opening pdf files.  I have Acrobat DC/Windows by default, but when I click on the file, a file conversion screen now with all these language codes. Must use the "open with" function which is a nuisance.

    Why it will not open by default when I click on the file?

    Hello

    I guess that you are looking for this:

    Open drive

    Go in Edition > Preferences > General

    Uncheck the option, the online storage see the opening of the files

    Click OK and restart

    Thank you

    Abhishek

  • Find all the unique ID associated with a virtual machine

    is there some sort or any command that I could find all the unique ID associated with a virtual machine?

    I mean like ID: ID hardware, CPU ID, UUID, MAC address and etc...

    This should help you

    https://psvmware.WordPress.com/tag/VM-UUID/

  • How to create mailboxes for all the users are in other areas

    Hello
    I have several domains that they are separated from Forrest
    One of these areas installed Exchange server 2010
    Between all the areas I have created as a one-way trust
    How can I use the commands that all the users are in other areas, they connected the box the letters in my field and use the Exchange
    There is a command to create the mailboxes allow users are in my area

    (Get-user |) The value of Enable-mailbox-database)

    But in other areas, users are required to create the linked mailbox

    What is the command?

    Please repost your question in the Group of Discussion Administrative Microsoft Exchange at: http://www.microsoft.com/communities/newsgroups/list/en-us/default.aspx?dg=microsoft.public.exchange.admin&cat=en_us_918744ab-010e-4f16-9665-fe376f2631e4&lang=en&cr=us where the Exchange experts will be more than happy to asist you with your problems.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to select all the text with QNX TextInput

    With QNX TextInput, is there a way to select all the text? Spark TextInput a selectAll() method to select all text, but I do not see a similar method in QNX TextInput. No idea how you can choose all the texts with QNX TextInput. Thank you.

    Hey French,.

    Thanks for the clarification! I think I can help you. Here is a code example to show my explanation. In the code below when a user clicks the LabelButton object it will assign the focus to your TextInput object and then select all the text in this object. The only downside is that it will not bring the keyboard. so far, we are not successfully by invoking the keyboard without the user clicking on the TextInput. in any case in the code below, we use TextInput property the textField object as a reference to the TextField object internal. from there, we use the setSelection() method to select the text inside the object from the start to the end position pos. Here's the same code:

    package
    {
        import flash.display.Sprite;
        import flash.display.StageAlign;
        import flash.display.StageScaleMode;
        import flash.events.FocusEvent;
        import flash.events.MouseEvent;
    
        import qnx.ui.buttons.LabelButton;
        import qnx.ui.text.TextInput;
    
        [SWF(width="1024",height="600",backgroundColor="#CCCCCC",frameRate="30")]
        public class TextInputTest extends Sprite
        {
    
            private var myInput:TextInput;
    
            public function TextInputTest()
            {
                super();
    
                // support autoOrients
                stage.align = StageAlign.TOP_LEFT;
                stage.scaleMode = StageScaleMode.NO_SCALE;
    
                myInput = new TextInput();
                myInput.setSize(300,50);
    
                addChild(myInput);          
    
                var newBtn:LabelButton = new LabelButton();
                newBtn.label = "Click Me";
                newBtn.setPosition(325, 0);
    
                newBtn.addEventListener(MouseEvent.CLICK, selectMyText);
    
                addChild(newBtn);
    
            }
            private function selectMyText(e:MouseEvent):void
            {
                stage.focus = myInput;
                myInput.textField.setSelection(0, myInput.textField.length);
            }
        }
    }
    

    hope it's what you want. Good luck!

  • How to list all the users on the Windows 8 Pro welcome screen

    I work for a small company based in the House of my boss of IT services. Because he runs the company, all the computers in the House are on a domain Active Directory (ease of management and control). Because he runs the company from his home, several of these computers are tablets/touch screens for his children, all upgraded to Windows 8 Pro.

    Currently, the default behavior of Windows 8 at startup is to display the Welcome screen showing the last user who opened a session with an option to switch to another user. If "Other user" is selected, a complete login prompt appears requesting a user name and password. This is standard fair for Windows 8, especially on a domain.
    He wants to do me is to find a way to allow a style of Windows XP (workgroup) Welcome screen displaying all the available avatars with user accounts, allowing so a child to click easily their user account and enter a picture password without ever seeing the on-screen keyboard.
    To rephrase: we want the Windows 8 Pro welcome screen to list all the (or specific, if possible) allowing anyone of you users connect to the computer without entering a user name and only enter a password (or picture password).
    I searched the web carefully and it seems that Microsoft can have deprecated this feature in an update of Windows 7 - many people shouting right lose their old welcome screen after an update. I read in the case of registry (removal of corrupt profiles and .default) hacks, security policy settings (interactive logon: do not display last user name = disabled), account policy (control userpasswords2 > uncheck: users must enter a password...) and a few other suggestions that had mixed results, which none apply to the present case , either because the settings are already in place, or because they are not available due to being on a domain.
    I'm open to exploration of any kind of registry or 3rd party software hacks that can provide this functionality. Win8 default behavior is absolutely horrible for tablets - it should be easy for multiple users to connect to a device without using a screen keyboard to enter their username and password. WIN8 is halfway there with passwords of photo, but we still have to enter a user name for all, but the user recently.
    Thanks in advance!

    Hi Jayce Nornin,

    Please be informed that he has no option to list all the users on the Windows 8 Pro welcome screen.

     

    It will be useful. If you have any other questions, feel free to let us know. We will be happy to help you.

    Thank you.

  • Find all the lines from the previous column value difference lines

    I have an interesting requirement. There is a DATE column and a user in one table and I have to find all the lines for all users for which the previous and the current line has lagged in lets say more than 30 minutes. The rows are already sorted in time.

    For example in the following table, we need to ID 4 and 6 for user 1.


    Date of the user ID
    1 1 today 1 hr. 0 Min. 0 sec.
    today 2 1 1 hour 1 min 0 sec
    Today 3 1 1 hour 29 min 0 s
    * 4-1 today 1 hour 59 min 3s *.
    5 1 today 2 hours 10 min 2 sec
    * 6 1 today 2 hours 50 min 7 s *.

    Published by: user733179 on March 5, 2009 12:00

    Hello

    To obtain a separate calculation for each value of the usr, start the analytical clause with "BY usr PARTITION":

    WITH     got_dif     AS
    (
         SELECT     id,     dt,     usr
         ,     (dt - LAG (dt)
                    OVER ( PARTITION BY  usr
                              ORDER BY          dt
                            )
              )             -- difference in days
                  * 24 * 60  AS minutes_dif
         FROM     table_x
    --     WHERE     ...     -- if needed
    )
    SELECT     id,     dt,     usr
    FROM     got_dif
    WHERE     minutes_dif     > 30
    ;
    
  • Search for all the screws with a broken arrow run

    I have a VI that search all screws in memory, and I want to modify it so that it lists all the screws with a broken arrow run. How can you check by an arrow of broken execution program? I couldn't find it in the properties of the VI.

    You can use the VI 'Execution.State' property to check the status of the vi, if the VI is broken, you will get the State as 'Wrong'

  • How to find all the Subvi value changes to a control inside a cluster?

    I have a question I've had brewing for many years now, and as of today, this issue has become less philosophical for me now that I have a VI project with hundreds of screws in there to work through... If I have a cluster which is passed between/through several subVIs, is there a way to find all reads/writes to a particular control within this cluster? For example, if I use a global variable, I can find all the instances where this variable has been changed. Several times, a cluster is used to pass data instead of lots of global variables, but I know not anyway quickly find where specific parts of the latter are read or written in subVIs. Global variables becomes a headache when they are too many of them fly around, but I can't keep track of reads/writes in bunches without manually looking through a few screws hundreds that take in the cluster. Is there a function for this that I'm not aware of? I hope that this question/problem of logic. This may prompt a discussion of architecture, which I would be happy, because I will need to build projects of this scale in the future, but I think also completely stuck when the clusters are used (by me or others) to pass data autour. Thank you! John

    If you ungroup by name and bundle by name, just do a search for text to the name of the control.

  • How to find all the my post anywhere in the forum?

    Desktop HP Pavilion Elite HPE - 110 t... Operating system: Windows 7 Home Premium

    .

    Several months ago (maybe even a couple of years), I discovered that backup/restore are not created.  At this time I posted a question here.  Which lead to a very long series of back & suite assignments between myself & a answering machine (name?) & Finally I planned a daily task to create backup/restore points.  I saved the instructions into a Word document on my computer, but now I can't find them.

    .

    I just found out that there is still no restore point, even though the Task Scheduler shows that he ran this morning @ 02:00.

    .

    I just searched (I thought that all the forums here) for my username (jarhtmd) & only found 4 son, none of whom was what I was looking for.

    .

    How to find all the my post anywhere in the forum?

    Hello:

    Click on your user name to access your user name page.

    Then click recent posts by jarhtmd. Click on view all.

    Maybe it's the post you were talking about.

    http://h30434.www3.HP.com/T5/desktop-operating-systems/scheduling-system-protection-backup-restore-points/m-p/647911#M32431

    Paul

Maybe you are looking for