Question: When I am scripting in PLM, why am I sometimes not able to have the user ID match the login ID of the user I am testing against?
Solved! Go to Solution.
Solved by jpiggee. Go to Solution.
Answer: The User ID (Autodesk password) does not have to match the System ID (PLM internal Password)
Explained:
One is created internally, by the administrator, when the (unmapped) user is created in PLM (System ID). The other is created by the user, in Oxygen, when signing up to the Autodesk id, and is later imported into PLM when this user first logs in (User ID). That’s when the user gets “mapped”, meaning that the Autodesk id (O2) is _mapped_ to the internal (PLM) id.
In order to test what the System ID (PLM ID) of a User ID (Autodesk ID), you can use this simple script:
var user = '*login id*'; //login of the user in question
var userInfo = Security.loadUser(user); //return info of the user in question
println(userInfo);
Debug Return: ID: userStatus: firstName: lastName: email: // and so on….
The first one (in Red) is the System ID of the user which could be different from the Login ID of the user.
Now how can I find the User (Autodesk) ID if I know the System (PLM) ID?
Hi Joe,
The User ID (Autodesk ID) will always be the ID listed in the users profile, under Administration -> Security -> Users. After the Autodesk ID is mapped to the System profile created by the administrator.
Joe,
Unfortunately no, due to how the two accounts are tied together the PLM system is only aware of the PLM ID (true ID in the system) and is not aware of the Autodesk ID. In order to find the users Autodesk ID, you have to search for it under the user list in the Admin section.