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.

Add Comment
1 Answer(s)

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;
 }
Agile Angel Answered on March 25, 2015.

The biggest issue here is that for some reason the only information that can be grabbed from the TABLE_USERS is the User Name. Which is not useful. It is a textual combination of the last name, first name, and user id in parens. Why the User ID is not returned is beyond me.

on October 17, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.