Fusion Manage Forum
Welcome to Autodesk’s Fusion Manage (formerly Fusion 360 Manage) Forum. Share your knowledge, ask questions, and explore popular Fusion Manage topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Item Validation Scripts: Need Help Determining User ID

7 REPLIES 7
SOLVED
Reply
Message 1 of 8
obourne
561 Views, 7 Replies

Item Validation Scripts: Need Help Determining User ID

I'm creating a validation script that looks at the item details tab for a property "Assigned To" and checks the name listed there and compares it to User ID. My Problem is that my "Assigned To" property is a filtered pick list for ALL users and displays the name with the format <LAST>, <FIRST>. It seems that User ID is <First> <Last>. Is there a way to overcome this?

7 REPLIES 7
Message 2 of 8
bastien.mazeran
in reply to: obourne

Hi,

 

I would recommend using the string.split() method found in JavaScript to achieve this. In a nutshell, you will store in a new array the output of the split command and reconstruct a new string by calling the correct array objects and appending them accordingly.



Bastien Mazeran

Technical Support Specialist

Message 3 of 8
obourne
in reply to: bastien.mazeran

OK. That's fine. I was hoping for some cool variable setting to tweak but using an array and then concatenating the name is fine too.

 

Thanks.

Message 4 of 8
obourne
in reply to: obourne

OK. I have my script working BUT I see that it is using my Autodesk login name as my User ID. How can I set my user ID to be my actual name? Or better, how do I detrmine the User ID for any user? I ask because when I investigate this I find about 5 different ways a user name is listed depending on what button I push.

 

Any ideas?

Message 5 of 8
bastien.mazeran
in reply to: obourne

Is your username syntax constructed with first name and last name? If it is you could potentially "re-construct" it based on those values.



Bastien Mazeran

Technical Support Specialist

Message 6 of 8
obourne
in reply to: bastien.mazeran

My username is  from my ADSK subscription account (becasue ADSK uses SSO tied into those accounts via my email address). So MY user ID is first intial_last name however my name in the user picklist is last name, first name.

 

My new users I've added appear to have an ID that is their email address so I'd need another script to handle their login name format.

 

Really my point is there appears to be now way to set a clearly defined login name i.e all users will have a login name that is XXXYYY and not some system generated name that ties into their existing ADSK subscription accounts.

 

I might be missing something. Let me know.

 

If there were a way to reset a user ID to something clearly deinfed that would be a fix.

Message 7 of 8
bastien.mazeran
in reply to: obourne

Changing the user ID will require renaming the email address field in Autodesk ID to something else, marking corresponding PLM user to inactive or deleted as well as changing the email address to another value, finally create a new Autodesk ID with the user ID you want and add a new PLM user with correct email address and sign into PLM 360 with new Autodesk ID to map the two user accounts. There is no easy way to achieve this at this time other than what I described here.



Bastien Mazeran

Technical Support Specialist

Message 8 of 8
obourne
in reply to: bastien.mazeran

Thanks for the tip on changing the user ID.

 

I'm hoping that using ADFS (SAML 2.0) will allow us to configure our User IDs accoding to a standard format.

 

Thanks.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report