can any one please explain about security model in Agile PLM ? Also, all the available APIs available to get such information from Agile PLM System.
Need to implement authentication and authorization for Agile PLM object search.
can any one please explain about security model in Agile PLM ? Also, all the available APIs available to get such information from Agile PLM System.
Security model in Agile PLM based on Agile privileges. The privileges include Object Type, privilege Criteria, and role.
Discovery privilege control whether users are allowed to learn (search) that certain objects exist in Agile PLM.
Users don’t have Discovery privilege to Agile object will not find this object in any search.
Event API work based on privileges have to users . In case you need more roles to run the API you can define all roles for the API in Event Handler.
PX API I wrote this code :
In this code we search if current user have privileges to run the API based on specific user group. In case he don’t have API stop and user get notification on Insuffcient privilige.
IUserGroup userGroup= (IUserGroup) session.getObject(IUserGroup.OBJECT_TYPE, "User Group Name"); ITable usersTable = userGroup.getTable(UserGroupConstants.TABLE_USERS); Iterator i1 = usersTable.getTableIterator(); String user= null; while (i1.hasNext()) { IRow row = (IRow) i1.next(); user= row.getValue(UserGroupConstants.ATT_USERS_USER_NAME).toString(); if (user.equals(session.getCurrentUser().toString()) ) { break; } } if (! user.equals(session.getCurrentUser().toString()) ) { ar = new ActionResult(ActionResult.STRING, "Fail, Insuffcient privilige"); return ar; }