How do you restrict access to custom applications?

When I create portlets, there is usually an associated "admin" functionality that needs to be created for each custom application. An example is a shopping cart that we just created, we needed admins to be able to go in and upload photos.
The way that I do this is I create a new portlet "Shopping Cart Admin" and restrict access to it that way. However, because I usually add everything in the /remoteserver/shoppingcart/. folder to the gateway space (its too painful to add one by one), this means that I can't put admin.aspx in that folder. So I usually end up creating a NEW folder /remoteserver/shoppingcartadmin/ for the admin portlet.
Long story short, its a lot of work. I know that I could try to use activity rights, but those seem very global. How do you control edit access to your custom portlets?

Well, there are a few different ways to go about it. You could add a preferences page with the admin functionality, and then an admin would just have to click the little pencil in the portlet titlebar. No admin/edit access, no little pencil.
I have often set the visibility of an ASPX control directly from activity rights, in OnPageLoad, if it isn't postback time. The activity rights should be inherited by the user, through the user's group. Best practise is to create empty groups called Roles, add activity rights to the Roles, and then have the actual groups (that contain users) inherit from one or more Roles.
You already knew that part, I added it for the others. My personal definition of a portlet is 'polymorphous instance of a web service'.
So:
Role: Store Manager (has Edit Shopping Cart activity right)
^
Group: Store Managers (has Store Manager parent group)
User: Vladimir (inherits Edit Shopping Cart activity right)

Similar Messages

  • ASA WebVPN. How do you restrict access to users in an AD group using LDAP?

    Hi All,
    I am trying to configure separate WebVPN connection profiles to give different portal bookmark contents to users based on their AD group membership.  This has been very difficult, even though I beleive it should be easy.
    The login page of teh ASA by default has a dropdown to allow default users to access the default portal and the SSL VPN client connection.
    There are two other portals that I would like to restrict access to based on AD group membership.  I have set these up to be selected by URL.
    The biggest problem is, I have no way of knowing how to go about this.  The AAA LDAP options show a group membership search, which I have configured, but I cannot say "Profile X is restricted to AD group CarpetBaggers", so that if soneone that is NOT a carpetbagger tries to log in, it fails.
    I can only do an all or nothing scenario.
    It would be nice to use Dynamic Access Policies to do this, and I have created a few, but they do NOT seem to work when the drop down aliases or URLs are in use.  So how do I go about using them in this scenario?  Turning off the aliases or URLs is not really an option right now.
    Scenario 1 would work the best for me.  Restrict access to profiles/groups based on AD group membership using LDAP.
    Scenario 2 would be an ideal longer term solution.
    Any thoughts, ideas or assitance would be greatly appreciated.
    Cheers

    This is exactly what i was looking for, and Nelson is correct.  When you enter the DAP configuration for a profile click on "Advanced" and there is the option to create a logical expression.  The guide (ther is a button to access this) is really helpful, with a couple of examples.  This is what i used:
    assert(function()
       if ( (type(aaa.ldap.distinguishedName) == "string") and
            (string.find(aaa.ldap.distinguishedName, "OU=Users") ~= nil) )
    then
           return true
       end
       return false
    end)()
    from the debug dap you can see what Users relates to;
    DAP_TRACE: Username: MyUsername, aaa.ldap.distinguishedName = CN=Mr B,OU=Users,OU=Site ******,DC=CH,DC=Mycompany,DC=com
    My admin account fails to get me in to the same profile:
    DAP_TRACE: dap_add_to_lua_tree:aaa["ldap"]["distinguishedName"]="CN=Admin Mr B,OU=Admin Users,OU=Site *****,DC=CH,DC=Mycompany,DC=com"
    Thanks
    Andrew

  • How do you restrict access to certain apps via the use of Time Restrictions?

    Is there anyway to limit the use of certain apps to a time period of the day? I know the time restrictions on this site ONLY pertain to texting and calls, but not email or any other app, such as Twitter or Facebook, etc.

    Well, there are a few different ways to go about it. You could add a preferences page with the admin functionality, and then an admin would just have to click the little pencil in the portlet titlebar. No admin/edit access, no little pencil.
    I have often set the visibility of an ASPX control directly from activity rights, in OnPageLoad, if it isn't postback time. The activity rights should be inherited by the user, through the user's group. Best practise is to create empty groups called Roles, add activity rights to the Roles, and then have the actual groups (that contain users) inherit from one or more Roles.
    You already knew that part, I added it for the others. My personal definition of a portlet is 'polymorphous instance of a web service'.
    So:
    Role: Store Manager (has Edit Shopping Cart activity right)
    ^
    Group: Store Managers (has Store Manager parent group)
    User: Vladimir (inherits Edit Shopping Cart activity right)

  • How do you restrict access to a business process structure in Solution Mngr

    We have set up a business process structure in Solution Manager that includes Finance to Manage and Hire to Retire.
    Although it is Ok for people to display the documentation in each area, we do have the requirement that the people owning Finance to Manage should not able to change the documentation in Hire to Retire and visa versa. Is there a security object that restrict this access? Are there other ways doing this?
    Thanks
    Paul

    I am not a security person, but we have the following details in the profile. You can change these if you click on these areas changing it to display or change mode
    SAP Solution Manager Tab AI_SA_TAB
    --> SAP Solution Manager Tab 
        ---> Activity 02, 90
        ---> Tab in SAP Solution Manager BCSETS, CONFIG, CUSTDOCU, GRAPHIC, IMG, ISSUE, (ETC.)
    > Transaction Type in SAP Solution Manager  1
    Hope this helps
    Paul

  • How do you restrict access of a pdf to one user at a time?

    I need to put pdf's on a shared work server so that users can make their own individual comments on them, and so collate all corrections for me to then pick up in one pdf.
    Question is, can I restrict the pdf in some way that prevents it from opening if another user has it open and is in the process of making their comments on it?
    Thanks

    That's not a good way to do that. You should look into Acrobat's Shared
    Review features.

  • SSH login- how do I restrict access to a shared folder?

    I have created Shares in WGM for SMB and AFP access on my OS X 10.4.8 Server. However when I connect via SSH it's not restricting access to the folder based on the User Name I login with- I see the entire volume! How do I restrict access to a specific folder based on a user name setup in WGM? ACL's?

    Hey George,
    It sounds like you are trying to limit ssh/sftp users to a specific area, aka jails. The FTP server lets you 'chroot' users to a certain area making it appear as the root thus preventing them from navigating up the hierarchy, which is what I think you, and me and many others are trying to accomplish.
    The ssh compiled into OS X is missing this very needed feature. There have been a few documented workarounds, but they've either been too insecure or too clunky for me.
    I've dealt with the fact that my users can get to the root of the hard drive, and have just been very careful about my privileges (by using ACLs), thus preventing them from getting inside areas they shouldn't.
    There's a good write up here: http://www.schwie.com/brad/macosxsftpchroot/ and if you include the term 'chroot' in your searches, you should find a bit about it here too.
    And Roger, I think George meant the file sharing protocol used by ssh. man sftp.

  • How can I restrict access to add. internal hard drive by account?

    Hello! Okay, so I am my computer's administrator, and I have a secondary 'guest' account that anyone else can use. So, I know that all my data on my main, OS hard drive is secure from the guest account accessing it, but what about the additional hard drive that I have installed?
    I have a good deal of sensitive data and files stored (and aliased) on my second internal drive that I do not care for 'guest' users to stumble upon. How can I restrict access to the secondary storage hard drive from my Guest login account, and/or just plain hide it from it? Surely, there is a need for this that has brought about a solution. Any tips/advice/solutions?
    Thanks!!!
    =)

    Click here and follow the instructions followed by placing the folders and files on the image; if the password is in the keychain, it will be supplied whenever you're logged in.
    (41018)

  • I tried to set up a remote desktop between my macmini and my work computer.  I hit cancel and now the Remote Desktop will not close.  I cannot shut down my computer either.  How do you close a non-responsive application.  I have tried everything!

    I tried to set up a remote desktop connection between my MacMini and my work computer.  It was not working so I hit cancel, but then the big black screen of death came up and will not go a way.  I cannot close my computer nor quit the remote desktop connection.  How do you close a non-responsive application?  By the way, I am new to Mac and it is not as simple as hitting the Control, Alt, Delete.  Please help.

    virginiafromphoenix wrote:
    .......How do you close a non-responsive application?.......
    Try ( alt + cmd + esc ).  Gives you a menu of running applications, and a chance to "Force Quit".

  • How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application?

    How do you create a stand alone application using DAQmx when your application SCXI hardware isn't on the computer I am using to create the application? The DAQmx assitant won't allow me to create a task with hardware that isn't in my system.

    You will need to have at least the DAQ device in your computer to add the chassis. When you add the chassis, don't auto detect the modules. You will have to add the terminal blocks and tell MAX which SCXI module will be connected to the DAQ device. Just make sure you don't test the chassis, when its not there.
    I hope this helps.
    Joshua

  • How do you get access to window?

    When you do a typical System.out.print-whatever it prints a stream of text onto that default java window which popped up when you executed your program. My question is, how do you get access to this particular window, so you can resize it, clear it, or put text in specific locations instead of at the end of a buffer... any tips will be appreciated. thanks

    hmm so there is no way to do anything special to that dos-like window except append text to it? Is there a way at least to remove text from it? (sorta like printing dots and then removing them?)

  • How do i restrict access to gambling sites

    how do i restrict access to gambling sites on ipad mini

    You can put a filter on your wifi or use something like the K9 browser.

  • How do you authorize access to itunes while blocking the access of the rest of the computer?

    How do you authorize access to itunes while blocking the access of the rest of the computer? I want to do a party and let people have access to the music but  I don't want them to look in my files. I have windows 7.
    I cannot log off and let the music play. Ideally I would want to have a password for access to the rest of the computer.
    Thank you!

    The following may help with the file sharing issues: OS X Mavericks: Share your files

  • How do you gain access to all files on different users?

    How do you gain access to all files and folders for each user?

    http://forums.whirlpool.net.au/archive/718273

  • HT1178 How do I restrict access to my network to mac addresses?

    I am setting-up a new Time Capsule and wish to restrict access to my wireless network to only those mac addresses of my equipment.  I can't find instructions on how to do this.  Any help in pointing me to the correct resource would be appreciated.

    Suggest that you check the Help area in AirPort Utility for instructions.
    Open AirPort Utility
    Click the Help menu at the top of the screen
    Click AirPort Utility Help
    Wait for Help to load
    Click Setting up a Wi-FI network on the left side of the main page
    Click Control when a user can access your network
    Click Control access to your wireless network

  • How do I restrict access to a folder-like attaching a password in order for someone to open it.

    I want to locate a folder on my desktop, but want to restrict access so that anyone on my laptop can't access the folder, even though they will see it sitting on the desktop.  How do I set up folder permissions?

    Any file on YOUR desktop already has permissions set such that no other user account can access. But if you want to use the OS's native capability to encrypt the contents of a folder, place that folder within an encrypted image.
    Use Disk Utility to create a disk image, and encrypt it with the same utility (use settings in "new image") . Make sure you size the image to a size great enough to hold all your files. Once created, and placed on your desktop, open it, using your password. Once the image is mounted, place the files you want to protect into that image, and then dismount/eject the image. The image essentially becomes your password encrypted folder. Double click it at any time to access your files (enter password). Eject the mounted image to "re-encrypt".
    If you want a disk image that has cross platform capability, then try TrueCrypt. It is  great App for Mac & Windows, with other advantages as well.

Maybe you are looking for

  • Aperture won't print to fill page!?!

    I had followed a couple threads on this topic and have come to a very aggrivating conclusion: Aperture printing will NOT let you set the border size smaller than the LARGEST print border your printer has. So my Epson printer which can print to within

  • Initial Load of Service Order by loading histor. prices (w/o Pricing P.)

    Hi Experts, in our actual proyect we need to load historical service orders into the system via report. No our problem is if we shut of the pricing procedure the prices are set in the report are not taking into account. The result is that the product

  • My Black berry Getting Hot

    Hi Dears,  my blackberry Porsche Design P'9882 getting very hot everytime i use it after 1 minuts  specially when i use viber or whatsapp... Device SN =**Removed** Please advise will be appriciated Regards, Zhalla  Edit: SN, Last Name removed. At no

  • IPHONE5 imap email issues on verizon LTE

    I'm a verizon customer using an Iphone5.  I have a .me account and two other email accounts.  My work email, an imap is not coming in unless I am on a wi-fi connection and then not always.  Tried all the reset options, had the device replaced, verizo

  • OS X not keeping correct file dates

    I have an issue with OS x and the date modified/date created - someone sends me a dvd with a file on it - I drag that file into a folder on my local HD and once it's done copying the file shows the "date modified" as the date that the file was create