The limit access to program function allows you to define who can use an application, the parts of an application, or the functions within a program.
The limit access to program function allows you to provide security for the program when you do not have an object to secure for the program. There are two methods that you can use to manage user access to application functions through iSeries™ Navigator.
The first method uses Application Administration:
- Right-click the system that contains the function whose access setting you want to change.
- Select Application Administration.
- If you are on an administration system, select Local Settings. Otherwise, continue with the next step.
- Select an administrable function.
- Select Default Access to allow all users to access the function by default.
- Select All Object Access to allow all users with all object system privilege to access this function.
- Select Customizeand use the Add and Remove buttons on the Customize Access dialog to add or remove users or groups in the Access Allowed and Access Denied lists.
- Select Remove Customization to delete any customized access for the selected function.
- Click OK to close the Application Administration dialog.
The second method of managing user access uses iSeries Navigator’s Users and Groups:
- In iSeries Navigator, expand Users and Groups.
- Select All Users, Groups, or Users Not in a Group to display a list of users and groups.
- Right-click a user or group, and select Properties.
- Click Capabilities.
- Click the Applications tab.
- Use this page to change the access setting for a user or group.
- Click OK twice to close the Properties dialog.
Important: The limit access to program function does not prevent a user from accessing a resource, such as a file or program, from another interface. You still need to use resource security.
The limit access to program function support provides APIs to:
- Register a function
- Retrieve information about the function
- Define who can or cannot use the function
- Check to see if the user is allowed to use the function
To use this function within an application, the application provider must register the functions when the application is installed. The registered function corresponds to a code block for specific functions in the application. When the user runs the application, the application calls the check usage API to see if the user is allowed to use the function that is associated with the code block, before invoking the code block. If the user is allowed to use the registered function, the code block is run. If the user is not allowed to use the function, the user is prevented from running the code block.
The system administrator specifies who is allowed or denied access to a function. The administrator can either use the Work with Function Usage Information (WRKFCNUSG) command to manage the access to program function, or the iSeries Navigator.