Detecting user and Admin Roles in use

I am looking to put some logic in my forms so that if I have role A, I can do edit attributes 1, 2 and 3. If I have role B I can edit attributes 3, 4, 5 but if I have role C I might only be able to view but not edit.
I understand the forms logic of disable, just not how to get the information about the logged in user doing the edit, including their roles. Any helpful hints would be appreciated.

Hi,
to get the legged user, I use this code:
<defvar name='actUserName'>
<invoke name='getUser'>
<ref>:display.session</ref>
</invoke>
</defvar>
To get the roles list
<dolist name='actRole'>
<get>
<invoke name='getObject' class='com.waveset.ui.FormUtil'>
<ref>:display.session</ref>
<s>User</s>
<ref>actUserName</ref>
</invoke>
<s>adminRoles</s>
</get>
<get>
<ref>actRole</ref>
<s>name</s>
</get>
</dolist>

Similar Messages

  • I am a final cut pro user and i recently started using adobe premiere pro. for anyone firmiliar with fcp, there are interesting ways of doing introductions on it and im wondering if anyone could tell me if premiere pro has preset introductions i can use

    i am a final cut pro user and i recently started using adobe premiere pro. for anyone firmiliar with fcp, there are interesting ways of doing introductions on it and im wondering if anyone could tell me if premiere pro has preset introductions i can use.

    Singenu wrote:
    I tought about looking in Monitor Activity to see what happens...
    Well, when I start working (should I say try to work with FCPX, activity monitor in the %processor column for FCPX jumps rapidly over 100% and reaches more than 200% ??? What the **** is that ?
    200% or more is not strange. Remember that your mac has 4 cores (you say it's 3 months old, so I assume it is a new model), so 200% amounts to using 2 of these 4 cores to the max.
    Regarding the question of creating a new admin user: while it sits in the same system, it may help if the problem is caused by some user-specific preferences or settings. Not likely in your case, since you seem to have reinstalled from scratch, but still it is worth a try. It takes 5 minutes and may help pinpoint the problem.

  • OVM user and admin guide

    Dear: I am new to OVM, and have successfully installed VM server and VM Manager. As per readme, I then installed OVM Manager Consol, as I was planned to use it from windows so I installed tightVNC and then paravirtulization drive on my windows machine.
    Now if I tried to access it from my windows ie exploere desktop machine, I cannot see it. I know for sure that there must be some sevices to start on OVM machine but have no clue. If some one please help me out and/or can send me link of OVM user and admin guide. Will be a great help
    Regards.

    You should find documentation at the below link:
    http://wiki.oracle.com/page/Oracle+VM
    Documentation, Best Practices and White Papers

  • Auto policy updates from DC1 to DC2 work but break user and admin login in DC2.

    Auto policy updates from DC1 to DC2 work but break user and admin login in DC2.
    Is there any solution to this ?

    You will need to update your transformation rules to match the URL/hosts for dc2.

  • Email notification is not sent to the user and admin

    Hi gurus ,
    We have a incident  that user and admin is not received the email notification to lotus notes id.other users receiving the notifications from the same application.Same user and admin  receiving mails from other applications
    SWI1 no error but in SOST there is no record of a mail sent.
    Have checked SU01 the user has an email address maintained both in ESS and R/3.
    As per config SO16 - home address is selected.
    In the profile his external email id is selected as home address.
    what should i check next to sort out the issue.
    Please help .
    Sampada .
    Edited by: Siri Sampada on Jan 15, 2011 11:11 AM

    This was a workflow issue

  • Deferent between oem user and admin user

    Hi,
    For the SL500 robot,
    Does any body knows the deferent between oem user and admin user?
    does one of them has privileges on the other?
    Yigal

    Dear all,
    Thanks a lot for all of you.
    I have already set local user and domain user in "Logon as a batch job" security policy on my PC. So I can do jobs well if I set logon user that is a any local user in my PC. I can't do a job if I set logon user that is a domain user. So I don't know what it wrong?
    Should I add domain user in "Logon as a batch job" security policy on AD Server not in local PC's "Logon as a batch job" security policy?
    I don't have privilege to change policy on AD Server. And I have to make sure it will work if add my domain user in "Logon as a batch job" security policy on AD Server. So should I add policy on AD Server or just add in local PC.
    Any idea?
    Thanks and regards.

  • How to Add Active Directory user to Admin Role

    Hi All,
    I am trying to figure out how to add a AD user to the Admin Role..
    I am connected to AD and can see the user (myself), however, when I try to add myself to the admin role, it says user not found.
    I go to Security Realms > myreals > Roles and Policies > Global Roles > Roles > Admin > View Role Condition.
    I see that the Administrators Group is already added. Now I click "add Conditions" and select "User" from the Predicate List and type in the user " Doe' John".
    On the next screen I get "user: John or Dow" does not exist.
    Another option could be to add the user to the Administrator group, but I couldnt figure out how to do that as well. When I navigate to the user under Users or Groups, I dont see an option to add that user to the Administrator group.
    Is it that you can only add users created in Weblogic to the Admin group?
    Any help on this will be very appreciated.
    Thanks in advance.

    I think I got it. I had to add the AD group the user is part of to the Admin role.

  • Incorrect user and admin accounts showing when trying to apply patches

    Hi folks,
    I have completed a (rather painful) install of the "main" component of BPC version 7 on my clients' server, with a domain user as the System Admin, and local accounts for the Admin and User accounts.
    This is a single-server install.
    Now, when I try to apply the two patches to make it "officially" SP4, on the page that asks for my passwords it has filled in my IDs incorrectly.
    So, my System Admin ID is showing correct as <domain>\sysadmin, but my admin and user are also showing as <domain>\bpcadmin and <domain>\bpcuser, rather than as they SHOULD appear: <local machine name>\bpcadmin and <local machine name>\bpcuser.
    I have no idea what is happening, but I'm guessing it is down to some COM+ object that hasn't updated properly for some reason.
    I also had a problem with the ApShell application not being created, so I had to do this manually, which I know isn't normal. Also, there has been no database created for ApShell either.
    I checked all the pre-requisites and made sure all user accounts were ready to use, etc, but is there anything anyone can think of that might be causing these problems?
    Thanks very much.
    Best wishes,
    Jason
    Update: I thought that it woud be a good idea to uninstall BPC and start again, rather than amending components and databases manually, which shouldn't be necessary. Any tips on cleaning up the resulting mess would be most welcome!

    Thanks Tony!
    I reinstalled the application with the Sys Admin right the way through, and it accepts it, but I get another error:
    [click here for picture|http://picasaweb.google.com/lh/photo/JFFxet7nUJcoeHY9hAQOcQ?feat=directlink]
    This is weird as the database error shows C:\... when actually the default database is on D:\Data...
    If I click on OK, I then get this much more complicated message:
    [click here for picture|http://picasaweb.google.com/lh/photo/uM0LmGaQgJx4VseRqwXnsQ?feat=directlink]
    I'm not even going try and interpret that one - but some searches on the internet haven't been very useful.
    Any ideas? I'm almost at the point of getting the client to uninstall and reinstall SQL Server again, as I've been having this problem for at least 24 hours. But I'm keen to avoid this if possible, so any help wuld be appreciated.
    Cheers,
    Jason

  • Database level users and their roles

    Hi Team,
    we are doing some auditing we need to check in database.
    User name and his roles for this any script please kingly suggest me.
    Use <<database name>>
    UserName   Role 
    subu

    Refer the below link:
    http://www.pythian.com/blog/httpconsultingblogs-emc-comjamiethomsonarchive20070209sql-server-2005_3a00_-view-all-permissions-_2800_2_2900_-aspx/

  • Detect user to see if still using the transaction code

    Hi,
    Is there a way to detect if the user is still working in a transaction code that the Exit FM is linked to? I have a requirement to detect the user's action within the transaction code enviroment and then according to whatever the user is doing, the Exit FM should process certain tasks.  Instead of checking for the OK_CODE for the screen status, can I check the transaction code level to see if the user is  still working with it?
    Thanks,
    RT

    Hi Rich,
    Actually I am trying to detect whether a user is still working in the transaction code or not. I have tried to code the PF-STATUS and SY-UCOMM to detect the user's allowable actions within this transaction code, but I was told that the Exit FM cannot recognize the PF-STATUS and its OK_CODE, so I am now trying to take a different approach by detecting whether the user has either exited the transaction code or the BW system.
    I am trying to refresh a transparent table within the Exit FM based on whether the user is doing something when using this transaction code. The Exit FM is doing the refresh.
    Would you think this is possible? Please advise.
    Thanks,
    RT
    Message was edited by: Rob  Thomas

  • Bulk create Active Directory Users and Groups in PowerShell using Excel XLSX source file instead of CSV

    Hi Scripting Guy.  I am a Server Administrator who is very familiar with Active Directory, but new to PowerShell.  Like many SysAdmins, I often need to create multiple accounts (ranging from 3-200) and add them multiple groups (ranging
    from 1 - 100).  Previously I used VBS scripts in conjunction with an Excel .XLS file (not CSV file).  Since VBS is essentially out the door and PowerShell is in - I am having to re-create everthing.
    I have written a PowerShell script that bulk creates my users and adds them to their corresponding groups - however, this can only use a CSV file (NOT an XLS file).  I understand that "CSV is much easier to use than Excel worksheets", but
    most times I have three sets of nearly identical groups (for Dev, QA and Prod).  Performing Search and Replace on the Excel template across all four Worksheets ensures the names used are consistent throughout the three environments.
    I know each Excel Worksheet can be exported as a separate CSV file and then use the PowerShell scripts as is, but since I am not the only SysAdmin who will be using these it leads to "unnecessary time lost", not to mention the reality that even
    though you clearly state "These tabs need to be exported using this naming standard" (to work with the PowerShell scripts) that is not the result.
    I've been tasked to find a way to modify my existing PowerShell/CSV scripts to work with Excel spreadsheets/workbooks instead - with no success.  I have run across many articles/forums/scirpts that let you update Excel or export AD data into an Excel
    spreadsheet (even specifying the worksheet, column and row) - but nothing for what I am trying to do.
    I can't imagine that I am the ONLY person who is in this situation/has this need.  So, I am hoping you can help.  How do I modify my existing scripts to reference "use this Excel spreadsheet, and this specific worksheet in the spreadsheet
    prior to performing the New-ADUser/Add-ADGroupMember commands".
    For reference, I am including Worksheet/Column names of my Excel Spreadsheet Template as well as the first part of my PowerShell script.  M-A-N-Y T-H-A-N-K-S in advance.
       Worksheet:  Accounts
         Columns: samAccountName, CN_DisplayName_Name, sn_LastName, givenName_FirstName, Password, Description, TargetOU
       Worksheets:  DevGroups / QAGroups / ProdGroups
         Columns:  GroupName, Members, MemberOf, Description, TargetOU
    # Load PowerShell Active Directory module
    Write-Host "Loading Active Directory PowerShell module." -foregroundcolor DarkCyan # -backgroundcolor Black
    Import-Module ActiveDirectory
    Write-Host " "
    # Set parameter for location of CSV file (so source file only needs to be listed once).
    $path = ".\CreateNewUsers-CSV.csv"
    # Import CSV file as data source for remaining script.
    $csv = Import-Csv -path $path | ForEach-Object {
    # Add '@saccounty.net' suffix to samAccountName for UserPrincipalName
    $userPrincinpal = $_."samAccountName" + "@saccounty.net"
    # Create and configure new AD User Account based on information from the CSV source file.
    Write-Host " "
    Write-Host " "
    Write-Host "Creating and configuring new user account from the CSV source file." -foregroundcolor Cyan # -backgroundcolor Black
    New-ADUser -Name $_."cn_DisplayName_Name" `
    -Path $_."TargetOU" `
    -DisplayName $_."cn_DisplayName_Name" `
    -GivenName $_."givenName_FirstName" `
    -SurName $_."sn_LastName" `
    -SamAccountName $_."samAccountName" `
    -UserPrincipalName $userPrincinpal `

    Here is the same script as a function:
    Function Get-ExcelSheet{
    Param(
    $fileName = 'C:\scripts\test.xls',
    $sheetName = 'csv2'
    $conn = New-Object System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = $fileName;Extended Properties=Excel 8.0")
    $cmd=$conn.CreateCommand()
    $cmd.CommandText="Select * from [$sheetName$]"
    $conn.open()
    $cmd.ExecuteReader()
    It is called like this:
    Get-ExcelSheet -filename c:\temp\myfilename.xslx -sheetName mysheet
    Do NOT change anything in the function and post the exact error.  If you don't have Office installed correctly or are running 64 bits with a 32 bit session you will have to adjust your system.
    ¯\_(ツ)_/¯
    HI JRV,
    My apologies for not responding sooner - I was pulled off onto another project this week.  I have included and called your Get-ExcelSheet function as best as I could...
    # Load PowerShell Active Directory module
    Write-Host "Loading Active Directory PowerShell module." -foregroundcolor DarkCyan # -backgroundcolor Black
    Import-Module ActiveDirectory
    Write-Host " "
    # JRV This Function Loads the Excel Reader
    Function Get-ExcelSheet{
    Param(
    $fileName = 'C:\scripts\test.xls',
    $sheetName = 'csv2'
    $conn = New-Object System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source = $fileName;Extended Properties=Excel 8.0")
    $cmd=$conn.CreateCommand()
    $cmd.CommandText="Select * from [$sheetName$]"
    $conn.open()
    $cmd.ExecuteReader()
    # Set parameter for location of CSV file (so source file only needs to be listed once) as well as Worksheet Names.
    $sourceFile = ".\NewDocClass-XLS-Test.xlsx"
    # Add '@saccounty.net' suffix to samAccountName for UserPrincipalName
    $userPrincinpal = $_."samAccountName" + "@saccounty.net"
    # Combine GivenName & SurName for DisplayName
    $displayName = $_."sn_LastName" + ". " + $_."givenName_FirstName"
    # JRV Call the Get-ExcelSheet function, providing FileName and SheetName values
    # Pipe the data from source for remaining script.
    Get-ExcelSheet -filename "E:\AD_Bulk_Update\NewDocClass-XLS-Test.xlsx" -sheetName "Create DocClass Accts" | ForEach-Object {
    # Create and configure new AD User Account based on information from the CSV source file.
    Write-Host " "
    Write-Host " "
    Write-Host "Creating and configuring new user account from the CSV source file." -foregroundcolor Cyan # -backgroundcolor Black
    New-ADUser -Name ($_."sn_LastName" + ". " + $_."givenName_FirstName") `
    -SamAccountName $_."samAccountName" `
    -UserPrincipalName $userPrincinpal `
    -Path $_."TargetOU" `
    Below is the errors I get:
    Exception calling "Open" with "0" argument(s): "The 'Microsoft.Jet.OLEDB.4.0'
    provider is not registered on the local machine."
    At E:\AD_Bulk_Update\Create-BulkADUsers-XLS.ps1:39 char:6
    + $conn.open()
    + ~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidOperationException
    Exception calling "ExecuteReader" with "0" argument(s): "ExecuteReader
    requires an open and available Connection. The connection's current state is
    closed."
    At E:\AD_Bulk_Update\Create-BulkADUsers-XLS.ps1:40 char:6
    + $cmd.ExecuteReader()
    + ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : InvalidOperationException

  • Abap+java abap-user and portal-role PROBLEM?? help

    We have the ABAP+java add-on install.
    The UME is by default ABAP engine.
    From Portal:
    1 I create a portal user, it ALWAYS creates ABAP user in ABAP engine.
    2. I create a portal role, it creates a role in the Portal.
    3. When I assign the user this portal role,
    having worksets and pages,
    I get no pages or worksets shown in the portal page as soon
    user logs in.
    Can you help configure this so that I could see the pages and iviews inside this workset when user logs in.
    Thanks  a lot.

    Hi Mike,
    You did right,
    Just check the Entry Point Property of your iView, page and workset to YES
    there are two radio buttons yes and no select the yes one,
    you can see your pages afte rlogin with the new user.
    Regards
    Abhimanyu L

  • Can admin.jar create oc4j users and connection pools that use those users

    Hi
    I have an ADF BC application written in jdev 10.1.3.3 deployed to standalone oc4j 10.1.3
    When I deploy the application I use the enterprise manager to create the users on the security provider/realms tab. I then set up the connection pools in jdbc resources to use those users via the username and indirect password fields. I also set the minimum number of connections on the attributes tab.
    I have read the following document but I cannot find any reference to setting up users, connection pools with indirect passwords or minimum number of connections.
    http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#BABHJAFE
    Is it possible to do using admin.jar?
    thanks
    paul schweiger

    I'm not sure about setting indirect passwords on the connection pool creation -- never tried it. It's probably treated purely as a lexical string, so may well be able to to issue the CP creation command with the "->USER" entry as the password.
    To create realms, users, groups, etc. you need to use the $ORACLE_HOME/j2ee/home/jazn.jar utility: http://download.oracle.com/docs/cd/B25221_04/web.1013/b14429/admintool.htm#g1022417
    The options for connection pool parameters such as min/max connections aren't directly expressable in the command. I'll need to look at the code and see if they can be passed in as non checked options via the factoryproperties. If not, then you can create a JMX client to use the MBeans that are created for the CP post deployment to change its behaviour.
    -steve-

  • AUDIT action (create, delete, privilege escalation, set and change password from users account and group) users and admins in Solaris 10

    Hello.
    in Solaris 10 i need auditing process create, delete, privilege escalation, set and change password and etc... from users account and group.
    I set settings:
    in file syslog.conf:
    *.info;mail.none;cron.none;audit.notice            @IP-Remote-syslog-server-SIEM
    in file   /etc/security/audit_control:
    dir:/var/audit
    flags:lo,ad,ex,cc,am,no,fc,fd
    minfree:20
    naflags:lo
    plugin:name=audit_syslog.so;p_flags=lo,ad,ex,cc,am,no
    in file   /etc/security/audit_user:
    root:lo,ad:no
    Now I see in the logs only the fact of a connection via SSH and run processes on behalf of users. Creation. delete users, change passwords for some reason do not is logged.
    Many users. For each individual write permissions in the file /etc/security/audit_user not possible, it is likely to forget any new user (or there is a possibility in this file one line to describe the audits for all accounts?)
    Where is the mistake?

    You are most likely hitting Bug 15779000 user/role/groupadd/mod/del don't audit their use.
    And the fix is only available in S11.2.
    -- Renaud

  • Why do non-admin Wndows 7 users need admin password to use firefox?

    I had to reinstall Firefox and now as non-admin user, I have to use admin password to sign, plus, lost my user bookmarks? Only one personna appears for all users.

    1. The user.
    2. User File Ownership - Reset   see post by Linc Davis
    3. No, although there are certain files, like System components your do have to authenticate for.

Maybe you are looking for

  • How to I get back to the standard font

    I created some text and then decided to add another text box. Notthinking I speciied Times Roman which I recall is not avioabe in other systens - Mixrosoft The problem showed upo in that the new text showed up in thw rong size. Assuming my diagbosis

  • How to convert the source code in JSP,HTML&BEANS into executable files?

    Sir, We are developing one s/w product in JSP,HTML&BEANS.Now we are in the implementation phase.During the time of Installation,without copying our source code in the customer's site I want to copy the executable files of the entire source codes? Is

  • URGENT trouble pdf attached to individual emails from word

    Hello, I have Acrobat XI pro and created a word file with fields that are imported automatically from an excel sheet. This works perfect. Then i like to have pdf maker generate individual emails with individual pdf attachement. This works too and I c

  • Order type automatically assign to product wise for order

    Hi all,           I gave 4 types of Orders for one plant as per products.   The client ask me  assign that orders   automatically for each product in routing  how i will assign  please let me know.

  • Asset Number

    Hi all, I just loaded some Assets in my SAP ECC 6.0 system, but I make a mistake and I wrote bad asset number for them... Now I need to change those numbers.  ¿Can anyone here help me or give me some idea?.  Assets numbers are Manual and I just loade