This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 29, 2011, 7:08 AM
170 Posts
topic has been resolvedResolved

how to make an XPage admin only

  • Category: Other
  • Platform: All
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 2
 In ordinary domino development you have the security tab on forms so you can easy and securly
lock down a form so only people inside a certain group or a specific roll can create that form.
 
How do I do this in XPages? 
 
What is the best approach here. 
 
/Fredrik 
 
 
May 29, 2011, 11:05 AM
21 Posts
Re: how to make an XPage admin only
This is how I'd approach it :
a) Make sure the buttons/links to the admin xpage only display for the admin role.
b) On the admin xpage, put a header with a redirect back to the home page if not the admin role.
c) Enclose the rest of the admin page in a panel that will only render if using the correct role.


May 30, 2011, 7:00 AM
261 Posts
Re: how to make an XPage admin only
Hi Fredrik,
 
/you can set an ACL on the XPage itself. See here (http://xpagesblog.com/xpages.../controlling-access-to-an-xpage-with-the-xpages-acl.html) for an explanation.
 
An example of an ACL to check for an [admin] role is:

    <xp:this.acl>
        <xp:acl>
            <xp:this.entries>
                <xp:aclEntry right="EDITOR" type="ROLE">
                    <xp:this.name><![CDATA[[admin]]]></xp:this.name>
                </xp:aclEntry>
            </xp:this.entries></xp:acl>
    </xp:this.acl>
 
Mark

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal