SYSTEM AND METHOD FOR SELECTIVELY DEFINING ACCESS TO APPLICATION FEATURES

Abstract: A method and system are described for defining a user's access to one or more features of an application. One or more "attributes" are assigned to users of a computer system (5) and stored in a data table (11, 13, 15). Each attribute has a name which designates the feature to which access is being defined (e.g., the ability to access data within the database), and a value defining the limits of access. Attributes may be assigned in groups to eliminate the burden of preparing attribute assignments one by one for each user. When an application is run, the attributes are retrieved and enforced such that the user's access to the features of the application is defined in accordance with the retrieved attributes.

Description: SYSTEM AND METHOD FOR SELECTIVELY DEFINING ACCESS TO APPLICATION FEATURES TECHNICAL FIELD OF INVENTION The following invention relates generally to defining user access to computer systems, and in particular, to the ability to define selectively and flexibly the limits of each of a plurality of users' access to the features of one or more applications capable of being run on a computer system. BACKGROUND OF INVENTION In an environment such as a shared-resource service bureau environment, where many employees and/or clients have access to a computer system capable of running numerous applications, it is often desirable to have the ability to restrict access by certain users or classes of users to one or more features of such applications. As used herein, the term "features" includes any of the nearly infinite possible application functions such as, by way of example, accessing data from database tables, generating, viewing and printing reports, and sending and/or receiving e-mail. Presently, such flexibility in restricting user access is unavailable. With respect to restricting access to data, one method presently employed by Oracle ® Corporation in its database programs is to limit, at the database level, a user's ability to access particular data tables. Oracle ® Corporation accomplishes this by providing for the assignment of "roles" to users which restrict access, not specifically to the data itself, but to the tables holding the data. The need for more flexibility in restricting access to application features, including the data access feature restricted by the Oracle ® roles, can be illustrated by a simple example. The following is a hypothetical data table of confidential financial transactions made by clients A, B and C on the morning of June 15, 1998, where WDRWL indicates a withdrawal, DPST indicates a deposit, and PYMNT indicates a payment. .?. Table 1 In order to prepare a report regarding the confidential transactions of only client A for the month of June, one needs access to the data in rows 1, 4 and 6, but not rows 2, 3, 5 and 7. Since this data is highly sensitive, restriction of access to the data pertinent only to the assignment (i.e., reporting of client A's transactions) is highly desirable. In addition, the application used to prepare a report of A's past transactions may have the ability ' to generate several different types of reports, including reports projecting future performance in addition to showing past performance. Depending on who is given the assignment, it may not be desirable to permit access to both types of report-generating abilities. It may also be undesirable to permit printing of the reports generated. SUMMARY OF THE INVENTION In accordance with the present invention, one or more "attributes" are assigned to users of a computer system capable of running numerous applications. Each attribute is a name-value pair wherein the name designates the application feature or features to which access is being defined (e.g., accessing data, generating reports) and the value sets the limits of access (e.g., all or some data). Attributes may be assigned in groups to eliminate the burden of preparing individual attribute assignments for each user. In accordance with the invention, a system and method are provided for defining a user's ability to run at least one feature of an application. According to the system and method, a user is assigned at least one attribute. The attributes are stored in a table in a database. An application is run by the user and the attributes assigned to the user are retrieved. The attributes are enforced by the application such that the user's access to the features of the application is defined in accordance with the retrieved attributes. In accordance with a further aspect of the invention, a system and method for defining a user's ability to run at least one feature of an application are provided wherein a group is assigned at least one attribute, and the group is assigned to a user. The group is stored in a table in a database. An application is run by the user and the group assigned to the user is retrieved. The attributes assigned to the group are enforced by the application such that the user's access to the features of the application is defined in accordance with the retrieved attributes. It is therefore an object of the present invention to provide the ability to selectively define access to application features available to a given user or group of users of a computer system. It is a further object of the present invention to provide greater flexibility than is presently available in the ability to restrict user access to data contained in table-oriented databases. For a better understanding of the present invention, together with other and further objects, reference is made to the following description, taken in conjunction with the accompanying drawings and its scope will be pointed out in the appended claims. BRIEF DESCRIPTION OF THE DRAWINGS FIGURE 1 is a block diagram depicting an exemplary system according to the present invention; FIGURE 2 is a block diagram depicting an example of the user attributes system grouping scheme of the present invention; and FIGURE 3 is a flow diagram depicting one embodiment of the method of the present invention. DETAILED DESCRIPTION OF THE INVENTION User Attributes FIGURE 1 is a block diagram depicting an exemplary system according to the present invention. A computer 5 runs database software 8 which maintains data tables represented by tables 11, 13 and 15. Numerous applications, represented by applications ABC, DEF and GHI, are also run on computer 5, some providing means for retrieving and manipulating the data in tables 11, 13 and 15. Each of the users of the system, X, Y and Z, has access to computer 5 via terminals, represented by computers 18, 21 and 24, respectively. According to the present invention, users X, Y and Z are assigned one or more "attributes." Each attribute has a name which designates an application feature to which access is being defined (e.g, the ability to access data within the database) and a value defining the limits of access, explained in greater detail below. Unless the context indicates otherwise, as used herein, the term attributes will be used to refer to a name- value pair. Attributes are maintained in a table by database software 8, and define the users' respective abilities to run applications ABC, DEF and GHI. By way of example, two useful attributes are DATA_SCOPE and USER_LEVEL. DATA_SCOPE defines the data to which the user is permitted access, and, using Table 1 above as an example, has possible values of A, B, C or ALL which represent the data associated with clients A, B, C or all three clients, respectively. USER_LEVEL is a broad attribute which defines generally the level of access to the particular features of a given application which a user chooses to run. USER LEVEL preferably has values of ADMIN, REGULAR and RESTRICTED, where ADMIN is the least restrictive, granting access to all available features of a particular application, e.g., report retrieval, e-mail, printing. RESTRICTED limits users to the most basic application features, e.g., report generation. REGULAR level users are permitted access to fewer features than ADMIN level users, but more than RESTRICTED level users. Each application can interpret the USER LEVEL attribute based on the different features it provides. It will be understood that several narrowly focused attributes, e.g., relating to report generation or printing, may be used in lieu of the USER_LEVEL attribute. The two attributes DATA_SCOPE and USER_LEVEL, and their respective values, are, of course, only examples. One skilled in the art will appreciate the unlimited potential for defining attributes limiting access to application features. Grouping Attributes may be assigned to users individually, or, in a preferred embodiment, a grouping scheme may be implemented, an example of which is illustrated in FIGURE 2. Attributes such as DATA_SCOPE and USER_LEVEL are represented by squares, "attribute groups" are represented by triangles and "assignee groups" are represented by circles. Attribute groups consist only of attributes and their values, while assignee groups consist of attribute groups and/or other assignee groups, but not individual attributes. In a preferred embodiment of the grouping scheme, each attribute group is limited to attributes for a single application, thereby providing the ability to assign different attributes and values for different applications. In an alternative embodiment, attribute groups may be created independent of particular applications such that one group may contain attributes for all applications. Although providing less flexibility in defining access to features of individual applications, such a system would be simpler to implement. In the preferred embodiment, a table APPS, which contains at least one column called APP_CODE, defines the list of valid applications that may have associated attributes. With reference back to FIGURE 1, the valid APP_CODE values in this example are ABC, DEF and GHI. Other columns in the APPS table would contain whatever information that is needed by each of the applications. For example, in a menuing system which provides icons from which a user chooses an application to run, a column APP_NAME would contain the character string that is used as the visible label of the icon associated with the application in the APP_CODE column. Each attribute group defines a set of zero or more attributes for a specific application identified by an APP CODE. An attribute group of zero attributes could be used to indicate that default values for the attributes should be assigned for that application. Typically, the default values will be the most restrictive. Alternatively, an attribute group of zero attributes could be used to indicate that there are no features of the application identified by the APP CODE to which access is to be defined other than the ability to run the application. The grouping example of FIGURE 2 depicts a more complex user structure than the example previously under discussion in connection with FIGURE 1 and Table 1. The attribute groups 106, 115, 130, 145 and 148 of FIGURE 2 have attributes assigned as follows: Table 2 In this preferred embodiment, the application to which each attribute group applies is specified at the time the group is created, and, in the example under discussion, is indicated in the above Table 2 in the second column. Returning to FIGURE 2, a user assigned attribute group 106 will have attributes DATA_SCOPE 107 and USER_LEVEL 108 with values of ALL and ADMIN, respectively, as shown in Table 2. According to the attributes, the user should be permitted ADMIN access to application GHI and will be granted access to data relating to each of clients A, B and C when running that application. A user assigned attribute group 130 will have three attributes DATA_SCOPE 133, DATA_SCOPE 136 and USER_LEVEL 139 with values of A, B and REGULAR, respectively. According to the attributes, this user will be able to access data relating to clients A or B and will be able to access the features of application ABC which are pre-defined for a user of REGULAR status. A user assigned attribute group 145 will have RESTRICTED access to application ABC and will be granted access to data relating to clients A and B. A user assigned attribute group 148 will be permitted RESTRICTED access to application DEF and will be granted access to data relating to clients B and C. One or more attribute groups can be assigned to assignee groups. In FIGURE 2, assignee group 142, for example, may consist of attribute groups 145 and 148 and may include all of the attribute name- value pairs listed in the last two columns of the following Table 3: Table 3 Assignee groups can also be assigned to other assignee groups. This is illustrated in FIGURE 2 by assignee group 103, which includes all attributes in assignee group 142 as well as all attributes in attribute groups 130 and 115. Assignee group 100 at the top of the figure consists of assignee group 103 and attribute group 106. Assignee group 100, therefore, contains all attributes in each of the five attribute groups 130, 145, 148, 115 and 106. The attribute grouping system is particularly well-suited for assigning attributes to employees of differing levels of responsibility. For example, attribute groups 115, 130, 145 and 148 may be assigned to low- or mid-level employees, while assignee groups 100, 103 and 142 and attribute group 106 may be assigned to management personnel whose responsibility it is to oversee the work of the lower- level employees and, with respect to attribute group 106, run their own applications. In this preferable grouping system, the assignment of attributes to attribute groups, assignee groups and users are kept in a table, ATTRIBUTES. The ATTRIBUTES table has three columns: ASSIGNEE, ATTRIBUTE_NAME and ATTRIBUTE_VALUE. ASSIGNEE may be an attribute group name, an assignee group name or a user. ATTRIBUTE_NAME is the name of the attribute (e.g., DATA_SCOPE). ATTRIBUTE_VALUE is a specific value for the named attribute (e.g., ALL). The ATTRIBUTES table is maintained using seven basic commands. These exemplary commands are set forth below as Oracle ® procedures for use in an Oracle ® database environment. Those skilled in the art will appreciate that analogous commands may be derived for other environments. In the following descriptions, parameters are in single quotes and literal strings are in double quotes. Command No. 1 attr_utils.create_group ('group_name', 'group_type', 'app_code') 'group name': name of group 'group ype' : "ATTRIBUTE" or "ASSIGNEE" 'app_code' : if the 'groupjype' is "ATTRIBUTE", this field is required; otherwise, it will be ignored This procedure will create a group of the specified type. It will exit with an error if the 'group name' already exists as a group or an Oracle ® user. According to the procedure, the 'group_name' and 'group_type' values are converted to upper case. Then, a record with the following column values is inserted in the ATTRIBUTES table: Set ASSIGNEE = 'group_name' Set ATTRIBUTE_NAME = "ASSIGNEEJTYPE" Set ATTRIBUTE VALUE = "ATTRIBUTE_GROUP" or "ASSIGNEE_GROUP" based on the value of 'groupjype.' In addition, if the 'groupjype' is "ATTRIBUTE", then another record with the following column values will be inserted into the ATTRIBUTES table: Set ASSIGNEE = 'groupjiame' Set ATTRIBUTE jNAME = "APP_CODE" Set ATTRIBUTEJVALUE = 'app ode'. Command No. 2 attr_utils.assign_group ('assignee', 'groupjiame') 'assignee': user or assignee group that will have the 'group_name' assigned, 'group iame' : group to be assigned to the assignee This procedure will assign one group to another group or user. An error will be returned if the 'assignee' doesn't exist as an assignee group or a user. An error will also be returned if the 'groupjiame' doesn't exist. This procedure will first convert the 'assignee' and 'group_name' values to upper case. Second, a record with the following column values is inserted into the ATTRIBUTES table: Set ASSIGNEE = 'assignee' Set ATTRIBUTE JNAME - "ASSIGNED J3ROUP" Set ATTRIBUTEJVALUE = 'groupjiame'. Command No. 3 attr_utils.assign_attribute ('assignee', ' attribute jiame', 'attribute_value') 'assignee': attribute group name. This must be an attribute group. 'attribute_name': the name of the attribute ' attribute 'alue': the value of the specified attribute This procedure will assign an attribute with the identified value to the 'assignee'. Errors will be returned if the assignee doesn't exist as an attribute group or if the attribute jiame is reserved. This procedure will first convert the 'assignee' and 'attribute_name' values to upper case, and then insert a record with the following column values into the ATTRIBUTES table: Set ASSIGNEE = 'assignee' Set ATTRIBUTE jNAME = 'attributejiame' Set ATTRIBUTEJVALUE = 'attribute_value'. Command No. 4 attr_utils.drop_group ('groupjiame') 'groupjiame' : name of group or user that will be deleted along with all references to this group or user. This procedure will drop a group or user along with all references to the group or user. An error will be returned if the 'groupjiame' does not exist. This procedure will first convert the 'groupjiame' value to upper case and then delete all records in the ATTRIBUTES table in which the value in the ASSIGNEE column matches 'groupjiame'. In addition, all records in the ATTRIBUTES table which match both of the following criteria will be deleted: a. The value in the ATTRIBUTEJNAME column is "ASSIGNED J3ROUP". b. The value in the ATTRIBUTE_VALUE column matches the 'groupjiame'. Command No. 5 attr_utils.rescind_group ('assignee', 'groupjiame') 'assignee': user or assignee group that will have the group_name rescinded 'groupjiame': group to be rescinded from the assignee This procedure will rescind the specified 'groupjiame' from the 'assignee'. Errors will be returned if the 'group_name' or 'assignee' do not exist. This procedure will first convert 'assignee' and 'groupjiame' to upper case and then delete all records in the ATTRIBUTES table which match the following three criteria: a. the value in the ATTRIBUTE jNAME column is "ASSIGNED J3ROUP". b. the value in the ATTRIBUTE VALUE column matches the 'group name'. c. the value in the ASSIGNEE column matches the 'assignee'. Command No. 6 attr_utils.rescind_attribute ('assignee', ' attribute j ame') 'assignee': attribute group name. This must be an attribute group. ' attribute jiame' : the name of the attribute. This procedure will rescind the specified ' attribute jiame' from the 'assignee'. Errors will be returned if the attribute jiame or assignee do not exist or if the attributejiame is reserved. This procedure will first convert 'assignee' and 'attributejiame' to upper case and then delete all records in the ATTRIBUTES table which match both of the following criteria: a. the value in the ASSIGNEE column matches 'assignee'. b. the value in the ATTRIBUTE NAME column matches 'attribute name'. Command No. 7 attr_utils.update_attribute ('assignee', 'attributejiame', ' attribute 'alue') 'assignee': attribute group name. This must be an attribute group. 'attribute_name': the name of the attribute, 'attribute j'alue': the new value of the specified attribute. This procedure will update the specified 'attribute 'alue' for the identified 'assignee' and 'attributejiame'. Errors will be returned if the attributejiame or assignee do not exist or if the attributejiame is reserved. This procedure will first convert 'assignee' and 'attributejiame' to upper case, and then update the ATTRIBUTES table by setting the ATTRIBUTEJVALUE column to 'attribute 'alue' for all records which match both of the following criteria: a. the value in the ASSIGNEE column matches 'assignee'. b. the value in the ATTRIBUTEJNAME column matches 'attributejiame'. Using the foregoing commands, an ATTRIBUTES table is maintained. As shown in command numbers 1 and 2, in the preferred embodiment, several reserved ATTRIBUTE jNAMEs are used in the ATTRIBUTES table to identify specific information to be used within the system. An ATTRIBUTE IAME of "APP CODE" is automatically assigned to an attribute group to identify the application associated with that group. An ATTRIBUTE IAME of "ASSIGNED_GROUP" is used to assign attributes to attribute groups, to assign attribute groups and assignee groups to assignee groups, and to assign attribute groups and assignee groups to users. An ATTRIBUTE JNAME of "ASSIGNEEJTYPE" is used to identify whether a group is an attribute group or an assignee group. The procedures will validate any ATTRIBUTEJNAME parameters to verify that they are not reserved and will return an error if an attempt is made to use a reserved ATTRIBUTE_NAME. By way of example, the portion of the ATTRIBUTES table pertaining to assignee group 142 of FIGURE 2 will appear as in the following Table 4: - I J- Table 4 In the alternative embodiment of the invention, discussed above, where attribute groups are not limited to particular applications, the create_group procedure would not require an 'app ode' input, and APP_CODE attributes would not be maintained in the ATTRIBUTES table. W olesale access to applications, however, could still be controlled using an additional table assigning APP CODEs directly to users. If a user were not assigned a particular APP CODE, the corresponding application would be completely unavailable to the user. Parent-Child Hierarchy The ability to assign to a single assignee group multiple attribute groups and/or assignee groups often results in the assignment to a group or user of overlapping, repetitive and even conflicting values for the same attribute. For example, assignee group 100, shown at the top of FIGURE 2, includes every attribute in the figure, and therefore, as shown in Table 2 above, includes for the same application DEF different values B, C and ALL for the DATA SCOPE attribute and different values REGULAR and RESTRICTED for the USER J.EVEL attribute. For this reason, in a preferred embodiment, attribute hierarchy rules are established wherein for each attribute value, a "parent value" is assigned, so that, for example, value B for the DATAJSCOPE attribute is assigned the parent value ALL. In practice, where a user's assigned attributes are called, and both a parent value and child value for the same attribute and application are present, the parent will be maintained and the child discarded. In addition, repetitive values will be discarded. The parent-child assignments are maintained in a table ATTRIBUTE _LEVELS which has three columns: ATTRIBUTEJNAME, CHILD_VALUE and PARENT JVALUE. ATTRIBUTEJNAME is the name of an attribute (e.g., DATAJSCOPE). CHILDJVALUE is an actual value of the attribute (e.g., C). PARENT_VALUE is the value of which the actual value is a subset (e.g., ALL). For the case where the actual attribute value is the highest in the hierarchy, for example ALL, the assigned parent value is NULL. The ATTRIBUTE J EVELS table is maintained using four basic commands. These exemplary commands are set forth below as Oracle ® procedures for use in an Oracle ® database environment. Those skilled in the art will appreciate that analogous commands may derived for other database environments. Note that in the following descriptions, parameters are in single quotes and literal strings are in double quotes. Command No. 1 attrjitils.add_attrjevel ('attributejiame', 'child_value', 'parent_value') 'attributejiame' : the name of the attribute 'child 'alue': the child value for the specified 'attributejiame' 'parent j'alue' : the parent value of the specified 'child j'alue' for the specified 'attributejiame' This procedure will add a new attribute level for the specified parameters. The 'parent_value' can be "NULL" if the 'child_value' has the highest level of authority of the specified 'attribute_name'. Errors will be returned if the parent value is not null and does not exist. This procedure first converts the 'attributejiame' to upper case, and then inserts a record with the following column values into the ATTRIBUTE .EVELS table: Set ATTRIBUTE JSTAME = 'attributejiame' Set CHILD VALUE = 'child_value' Set PARENT JVALUE = 'parent_value'. Command No. 2 attr_utils.update_attr evel ('attributejiame', 'child_value', 'parent_value') ' attributejiame' : the name of the attribute 'child 'alue': the child value for the specified attributejiame 'parent j'alue' : the parent value of the specified child value for the specified attribute name This procedure will update the parent value for the specified parameters. The 'parent_value' can be "NULL" if the 'child value' has the highest level of authority of the specified 'attributejiame'. Errors will be returned if the parent value is not null and does not exist and if the attributejiame and child j'alue combination does not exist. This procedure first converts the 'attributejiame' to upper case and then updates the ATTRIBUTE J^EVELS table by setting the PARENT_VALUE column value to 'parent j'alue' for all records which match both of the following criteria: a. the value in the ATTRIBUTEJNAME column matches 'attributejiame'. b. the value in the CHILD VALUE column matches 'child_value'. Command No. 3 attrjιtils.delete_attrjevels ('attributejiame', 'child 'alue') 'attributejiame': the name of the attribute 'child alue' : the child value for the specified attributejiame This procedure will delete the attribute level and all children attribute levels for the specified parameters. Errors will be returned if the combination does not exist. This procedure will first convert the 'attributejiame' to upper case and then delete all records in the ATTRIBUTE J.EVELS table which are "children" of the named pair of 'attribute_name' and 'child j'alue'. By way of example, the following SQL statement could be used to accomplish these first two steps: DELETE ATTRIBUTE LEVELS WHERE (ATTRIBUTEJNAME, CHILD JVALUE) IN (SELECT ATTRIBUTEJNAME, CHILD jVALUE FROM ATTRIBUTE J.EVELS START WITH PARENT_VALUE=P_CHILD JVALUE AND ATTRIBUTE jNAME=UPPER(P_ATTRIBUTE jNAME) CONNECT BY PARENT_VALUE=PRIOR CHILD VALUE AND ATTRIBUTE jNAME=PRIOR ATTRIBUTEJNAME). This procedure will delete all records in the ATTRIBUTE J_EVELS table which match both of the following criteria: a. the value in the ATTRIBUTEJNAME column matches 'attributejiame'. b. the value in the CHILD JVALUE column matches 'child j'alue'. Command o- 4 attr_utils.delete_alljevels ('attributejiame') ' attributejiame' : the name of the attribute This procedure will delete all the attribute levels for the specified attributejiame. Errors will be returned if the attributejiame does not exist. This procedure will first convert the 'attributejiame' to upper case and then delete all records in the ATTRIBUTE J " _EVELS table in which the value in the ATTRIBUTEJNAME column matches 'attributejiame'. Using the foregoing commands, an ATTRIBUTE J.EVELS table is maintained. By way of example, an ATTRIBUTE J.EVELS table for the sample attributes discussed above will appear as in the following Table 5: Table 5 According to Table 5, any assignments of the DATA SCOPE attribute having values A, B or C will be discarded if a DATA SCOPE of ALL is assigned to the same user for the same application. Similarly, assignments of lower USER LEVEL values will be discarded in favor of the highest value assigned. Preferably, if an attribute value is assigned in the ATTRIBUTES table, but is not defined in the ATTRIBUTE J.EVELS table, then it will be treated as though it were defined in the ATTRIBUTE J^EVELS table with a parent value of NULL, and with no other value having the assigned value as its parent value. Further minimization may be obtained by recognizing that a complete set of assigned values at a lower level can be replaced by the higher level value. For example, if DATAJSCOPE values of A, B and C are assigned, the system could return the value ALL. This minimization should be performed only if the complete set of lower level values actually represents the same thing as the higher level value, since it is possible that the higher level value might represent more than the sum of the lower level values. Operation of the User Attributes System Reference to FIGURE 3 will be made in connection with the following discussion of an exemplary use of the user attributes system of the present invention. According to a preferred embodiment of the invention, access to the applications being run in a database environment is controlled by an initial graphical user interface (IGUI). Examples of IGUIs include website home pages and local area network startup pages. Prior to gaining access to the applications, however, a user typically logs in to a computer system, shown at box 201, at which time the computer system will recognize the user if the login is completed correctly. In box 204, the IGUI retrieves the applications available to the user. In the preferred embodiment, the IGUI does this by accessing the ATTRIBUTES table, at arrow 205, which contains the group assignments for the user. As discussed above, in the preferred embodiment, the group assignments include attribute group assignments which, in turn, include the specification of available applications. In an Oracle ® database system, rather than search the entire ATTRIBUTES table which can be quite sizable, "views" containing the results of frequently-used searches (e.g., the attributes for a particular user) which is likely to be used over and over again may be prepared. In the alternative embodiment where attributes are not limited to specific applications, applications available to a particular user may be stored in and retrieved from a separate table. At arrow 205, the IGUI will also access the APPS table of valid applications which contains an APP_CODE column to tell the IGUI what character string to display to the user in box 207, where the IGUI displays to the user the available applications. In box 210, the user chooses one of the available applications. In box 213, the IGUI accesses the ATTRIBUTES table, at arrow 214, and retrieves the user's attributes for the application chosen. Again, in an Oracle ® database system, an Oracle ® view may be used to retrieve the attributes. In addition, the IGUI may access the ATTRIBUTE LEVELS table to reduce the number of attributes. At arrow 215, the IGUI passes the relevant attributes to the application, and, in box 216, the application is run with the application enforcing the attributes. If the user attempts to exceed the limits of access as defined by the attributes, an error or warning may be posted. It will be appreciated by those skilled in the art that, in an alternative embodiment, an application may retπeve the attπbutes directly, without the assistance of an IGUI, and enforce the attπbutes. Views As discussed above, Oracle ® views may be used in the present invention to retπeve and organize records from tables The following is a listing of twelve views found to be useful in the implementation of the invention. An explanation of each view and an SQL example is provided. View No. 1 V_ATTRIBUTE_APP_CODES This view will return a list of all distinct application codes setup m the user attributes system. This view performs a SELECT with the DISTINCT clause for records where the ATTRIBUTE JNAME is the reserved ATTRIBUTEJNAME of 'APP_CODE\ SQL Example: CREATE OR REPLACE VIEW V_ATTRIBUTE_APP_CODES AS SELECT DISTINCT ASSIGNEE, ATTRIBUTEJVALUE APPjCODE FROM ATTRIBUTES WHERE ATTRIBUTEJNAME = 'APPjCODE'; V_ATTRIBUTEj3ROUPS_ATTR This view will return a list of all distinct attribute groups. This view performs a SELECT with the DISTINCT clause for records where the ATTRIBUTEJNAME is the reserved ATTRIBUTE NAME of ' ASSIGNEE JIYPE' and the ATTRIBUTEJVALUE is ' ATTRIBUTE jGROUP'. SQL Example: CREATE OR REPLACE VIEW V_ATTRIBUTEj3R0UPS_ATTR AS SELECT DISTINCT ASSIGNEE GROUP JNAME FROM ATTRIBUTES WHERE ATTRIBUTE NAME = 'ASSIGNEE TYPE' AND ATTRIBUTE_VALUE = 'ATTRIBUTE jGROUP'; View No. 3 V_ATTRIBUTEj3R0UPS_ASSIGN This view will return a list of all distinct assignee groups. This view performs a SELECT with the DISTINCT clause for records where the ATTRIBUTEJNAME is the reserved ATTRIBUTEJNAME of 'ASSIGNEE JTYPE' and the ATTRIBUTE_VALUE is * ASSIGNEE J3ROUP'. SQL Example: CREATE OR REPLACE VIEW V_ATTRIBUTEj3ROUPS_ASSIGN AS SELECT DISTINCT ASSIGNEE GROUP JNAME FROM ATTRIBUTES WHERE ATTRIBUTEJNAME = 'ASSIGNEE JTYPE' AND ATTRIBUTE ALUE = 'ASSIGNEE J3ROUP'; View No. 4 V_ATTRIBUTE_USERS This view will return a list of all distinct attribute users. This view performs a SELECT with the DISTINCT clause for records where the ASSIGNEE is equal to the USERNAME found in the Oracle Data Dictionary table ALLJUSERS. SQL Example: CREATE OR REPLACE VIEW V ATTRIBUTEjUSERS AS SELECT DISTINCT ASSIGNEE USERID FROM ATTRIBUTES, ALLJUSERS WHERE ASSIGNEE = USERNAME; View No. 5 V_ATTRTBUTEj3ROUPS_ALL This view will return a list of all distinct groups in the system. This includes both attribute and Assignee groups. This view performs a SELECT with the DISTINCT clause for records where the ASSIGNEE is not an attribute user. SQL Example: CREATE OR REPLACE VIEW V_ATTRIBUTEj3ROUPS_ALL AS SELECT DISTINCT ASSIGNEE GROUP jNAME FROM ATTRIBUTES, V_ATTRIBUTE_USERS WHERE ASSIGNEE = USERID(+) AND USERID IS NULL; View No. 6 VJJSERjGROUPS This view will return a list of all groups assigned to the user currently connected to Oracle. The results include groups assigned directly to the user as well as groups indirectly assigned to the user. That is, groups that are assigned to ASSIGNEE GROUPS which are assigned to the user. This view performs a family tree type of query utilizing the CONNECT BY clause. SQL Example: CREATE OR REPLACE VIEW V JJSERjGROUPS AS SELECT ATTRIBUTEJNAME, ATTRIBUTEJVALUE FROM ATTRIBUTES WHERE ATTRIBUTEJNAME != 'ASSIGNEEJTYPE' START WITH ASSIGNEE = USER CONNECT BY ASSIGNEE = PRIOR ATTRIBUTEJVALUE AND ATTRIBUTEJNAME = ' ASSIGNED J3ROUP'; View No. 7 V_USER_ATTR_APPS This view will return a list of all attributes assigned to the user currently connected to Oracle along with the corresponding APP_CODE. This view will combine the list of groups assigned to the user (V USER GROUPS), the ATTRIBUTES table, and the list of ATTRIBUTE J3ROUPS with the corresponding APPjCODE values (V_ATTRIBUTE_APP_CODES). SQL Example: CREATE OR REPLACE VIEW V_USER_ATTR_APPS AS SELECT ATTR.ATTRIBUTEJNAME, ATTR.ATTRIBUTE JVALUE, APPS.APPjCODE FROM V JJSERJGROUPS GROUPS, ATTRIBUTES ATTR, V_ATTRΓBUTE_APP_CODES APPS WHERE GROUPS.ATTRIBUTE JVALUE = ATTR.ASSIGNEE AND ATTR.ASSIGNEE = APPS.ASSIGNEE AND ATTR.ATTRIBUTE JNAME NOT IN ('ASSIGNED JGROUPJAPPJCODEJASSIGNEE JTYPE'); View No. 8 VJJSERJVTTRJIIGHESTJVALUES This view will return a list of the highest level ATTRIBUTE JV ALUEs for the corresponding ATTRIBUTEJNAMEs. This view may contain duplicate entries, so the VJ SER_ATTRIBUTES view, discussed below, will retrieve a list of these distinct values. This view will pass the APP_CODE, ATTRIBUTEJNAME and ATTRIBUTE VALUE for each attribute assigned to the current user to the function ATTRJUTILS.HIGHEST JVALUE. A function is the same as a procedure except that it can be executed as part of a query and will return a value. Here, the function will return the highest parent value currently assigned to the user. A description of this function follows the SQL example for this view. SQL Example: CREATE OR REPLACE VIEW V_USER_ATTRjHIGHEST V ALUES AS SELECT APPjCODE, ATTRIBUTEJNAME, SUBSTR( ATTR_UTILS.HIGHEST_VALUE( APPjCODE, ATTRIBUTEjNAME, ATTRIBUTEJVALUE ), 1, 30 ) ATTRIBUTEJVALUE FROM V_USER_ATTR_APPS; The ATTRJ TILS.HIGHEST VALUE function requires three inputs: the APPjCODE, ATTRIBUTEJNAME, and ATTRIBUTEJVALUE. The function will first load an internal attribute value table consisting of all attribute values assigned for the given user, APP_CODE and ATTRIBUTE JSIAME. The function can use one of the existing views to do this (i.e., VJJSER_ATTR_VALUEJ_EVELS). The function will then use the current attribute value and find all of the parent records for this value. The function will use an SQL query that resembles the following: SELECT PARENT_VALUE FROM ATTRIBUTE JCEVELS WHERE ATTRIBUTEJNAME = P_ATTRIBUTEjNAME START WITH CHILD JVALUE = P_ATTRIBUTE_VALUE CONNECT BY CHILD JVALUE = PRIOR PARENT JVALUE ORDER BY LEVEL; The function will then compare each parent value to the records in the attribute value table to determine whether one of the other assigned attribute values is a parent record, i.e., a parent, grandparent, etc., of the current attribute value. If so, the higher level attribute value is returned. Otherwise, the current attribute value is returned. View No. 9 V J ATTR J VALUE J LEVELS This view will return a list of ATTRIBUTE JNAMEs, the associated ATTRIBUTE j VALUEs, and the corresponding level of the value. For example, the highest level of an ATTRIBUTEJVALUE will have an ATTRIBUTE_LEVEL of 1, while that value's children will have values of 2. This view performs a family tree type of query utilizing the CONNECT BY clause. SQL Example: CREATE OR REPLACE VIEW V ATTR VALUE LEVELS AS SELECT ATTRIBUTEJNAME, CHILD JVALUE ATTRIBUTE_VALUE, LEVEL VALUE JCEVEL FROM ATTRIBUTE JCEVELS START WITH PARENT_VALUE IS NULL CONNECT BY PARENT JVALUE = PRIOR CHILD jVALUE AND ATTRIBUTEJNAME = PRIOR ATTRIBUTEJNAME; View No. 10 V_USER_ATTR_VALUE_LEVELS This view will return a list of all attributes assigned to the user and their corresponding level. This view will combine the list of attributes assigned to the user currently connect to Oracle (V_USER_ATTR_APPS) and the list of attributes and their corresponding levels (V_ATTR_VALUE_LEVELS). . SQL Example: CREATE OR REPLACE VIEW V_USER_ATTR_VALUE JCEVELS AS SELECT APPjCODE, ATTR-ATTRIBUTEjNAME, ATTR.ATTRIBUTE JVALUE, NVL(VALUE_LEVEL,1) VALUE .EVEL FROM V_USER_ATTR_APPS ATTR, V_ATTR_VALUEJCEVELS LVL WHERE ATTR.ATTRIBUTE_NAME = LVL.ATTRIBUTEjNAME(+) AND ATTR.ATTRIBUTE_VALUE = LVL.ATTRIBUTE_VALUE(+); View No. 11 V_USER_APP_CODES This view will return a list of all distinct APP_CODEs the current user has been assigned. This view performs a family tree type of query utilizing the CONNECT BY clause. SQL Example: CREATE OR REPLACE VIEW V JJSERJvPP JCODES AS SELECT DISTINCT ATTR.ATTRIBUTE_VALUE APPjCODE FROM (SELECT ATTRIBUTEJNAME, ATTRIBUTEJVALUE FROM ATTRIBUTES START WITH ASSIGNEE = USER CONNECT BY ASSIGNEE = PRIOR ATTRIBUTE VALUE AND ATTRIBUTEJNAME = ' ASSIGNED JCROUP') GROUPS, ATTRIBUTES ATTR WHERE GROUPS. ATTRIBUTEJVALUE = ATTR.ASSIGNEE AND ATTR. ATTRIBUTEJNAME = 'APPjCODE'; View No. 12 V_USER_ATTRIBUTES This view will return a list of all of the attributes assigned to the user along with only the highest level ATTRIBUTE JVALUEs for the corresponding ATTRIBUTE jNAMEs. This view performs a SELECT DISTINCT on the V_USER_ATTR_fflGHEST_VALUES. (V_USER_ATTR_VALUE_LEVELS). SQL Example: CREATE OR REPLACE VIEW V_USER_ATTRIBUTES AS SELECT DISTINCT APPjCODE, ATTRIBUTEJNAME, ATTRIBUTEJVALUE FROM V_USER_ATTR_fflGHEST_VALUES; In an Oracle ® environment, in order to ensure that the data in the ATTRIBUTES and ATTRIBUTEjCEVELS tables are maintained correctly, it is preferable that only the Oracle ® procedures are used to perform any maintenance on user attributes. This can be guaranteed by limiting access to the different objects, e.g., tables, views, procedures and functions, in the user attributes system. Read-only authority should be given to the ATTRIBUTES and ATTRIBUTE JCEVELS tables, and to all of the views. Execute authority on the Oracle ® procedures used to maintain these tables should be given only to the user attributes administrator(s). This will ensure that unauthorized users will not be able to manipulate attributes or attribute levels. While this invention has been described with reference to several illustrative examples and embodiments, they should not be interpreted as limiting the scope or spirit of the attributes invention. In actual practice many modifications may be made by those of ordinary skill in the art without deviating from the scope of the invention as expressed in the appended claims.

Claims: We claim: 1. In a computer system capable of running at least one application and maintaining a database, each application having at least one feature, a method for defining a user's access to said at least one feature comprising the steps of: assigning at least one attribute to said user; storing said at least one attribute in a first table in said database; running an application in said computer system; retrieving from said first table one or more of said at least one attribute assigned to the user; and enforcing the retrieved attributes, whereby the user's access to said at least one feature of said application is defined in accordance with the retrieved attributes. 2. The method of claim 1 wherein one or more of the at least one feature relates to the ability to access data. 3. The method of claim 1 comprising, prior to the running step, the additional steps of: assigning a parent value for each actual value of said at least one attribute, whereby one or more parent-child relationships are created; and storing said one or more parent-child value relationships in a second table in said database; said method further comprising, prior to the enforcing step, the additional steps of: retrieving said one or more parent-child value relationships from said second table; and determining whether any of the retrieved attributes may be discarded in accordance with the retrieved parent-child value relationships. 4. In a computer system capable of running at least one application and maintaining a database, each application having at least one feature, a method for defining a user's access to said at least one feature comprising the steps of: assigning at least one attribute to said user; storing said at least one attribute in a first table in said database; running an application in said computer system; retrieving from said first table in the database one or more of said at least one attribute assigned to the user; providing the retrieved attributes to said running application; and enforcing the attributes, whereby the user's access to said at least one feature of said application is defined in accordance with the retrieved attributes. 5. The method of claim 4 further comprising, prior to the running step, the additional step of providing to said user a choice of one or more applications to run in accordance with the at least one attribute assigned to said user. 6. The method of claim 4 wherein one or more of at least one feature relates to the ability to access data. 7. The method of claim 4 comprising, prior to the running step, the additional steps of: assigning a parent value for each actual value of said at least one attribute; and storing parent-child value relationships in a second table in said database; said method further comprising, prior to the enforcing step, the additional steps of: retrieving said parent-child value relationships from said second table; and determining whether any of the retrieved attributes may be discarded in accordance with the retrieved parent-child value relationships. 8. In a computer system capable of running at least one application and maintaining a database, each application having at least one feature, a method for defining a user's access to said at least one feature comprising the steps of: assigning at least one attribute to a group; assigning said group to at least one user; storing said group in a table in said database; running an application in said computer system; retrieving said group assigned to said user from said data table; and enforcing the retrieved attributes, whereby the user's access to said at least one feature of said application is defined in accordance with said at least one attribute assigned to said group retrieved from said data table. 9. The method of claim 8 wherein said at least one attribute assigned to said group defines access only to said application. 10. A computer system comprising: means for running an application, said application having at least one feature; means for maintaining a database means for assigning at least one attribute to a user; means for storing said at least one attribute in a first table in said database; means for retrieving from said first table said at least one attribute assigned to the user; and means for enforcing the retrieved attributes, whereby the user's access to said at least one feature of said application is defined in accordance with said at least one attribute assigned to the user. 11. The system of claim 10 wherein one or more of the at least one feature relates to the ability to access data. 12. The system of claim 10 further comprising: means for assigning a parent value for each actual value of said at least one attribute, whereby one or more parent-child relationships are created; means for storing said one or more parent-child value relationships in a second table in said database; means for retrieving said one or more parent-child value relationships from said second table; and means for determining whether any of the retrieved attributes may be discarded in accordance with said parent-child value relationships. 13. A computer system comprising: means for running an application, said application having at least one feature; means for maintaining a database; means for assigning at least one attribute to a user; means for storing said at least one attribute in a first table in said database; means for retrieving from said first table said at least one attribute assigned to the user; means for providing the retrieved attributes to said application; and means for enforcing the attributes, whereby the user's access to at least one feature of said application is defined in accordance with at least one attribute assigned to the user. 14. The system of claim 13 further comprising means for providing to said user a choice of one or more applications to run in accordance with said at least one attribute assigned to said user. 15. The system of claim 13 wherein one or more of the least one feature relates to the ability to access data. 16. The system of claim 13 further comprising: means for assigning a parent value for each actual value of said at least one attribute; means for storing parent-child value relationships in a second table in said database; means for retrieving said parent-child value relationships from said second table; and means for determining whether any of the retrieved attributes may be discarded in accordance with the retrieved parent-child value relationships. 17. A computer system comprising: means for running an application, said application having at least one feature; means for maintaining a database; means for assigning at least one attribute to a group; means for assigning said group to a user; means for storing said group in a table in said database; means for retrieving from said data table said group assigned to said user; and means for enforcing the retrieved attributes, whereby the user's access to at least one feature of said application is defined in accordance with said at least one attribute assigned to said group retrieved from said data table. 18. The system of claim 17 wherein said at least one attribute assigned to said group defines access only to said application.

Inventors: BARGER SHAWN G, GERSHFIELD JAMES N, BARGER, SHAWN, G., GERSHFIELD, JAMES, N.
Applicants: ELECTRONIC DATA SYST CORP, ELECTRONIC DATA SYSTEMS CORPORATION
Application year: 1999
Main classification: G06F1
IPC codes: G06F1, G06F12, G06F21