cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

Authentication methods when calling REST API with workflow robots

shin1h
13-Aquamarine

Authentication methods when calling REST API with workflow robots

Hi experts,

 

We are developing an add-on using some REST APIs(such as NewDownstreamBranch) to automate some UI operations of the BOM Transformer with workflow robot processing. Currently, when calling the REST API, we need to authenticate the workflow initiator, but we face the challenge of not having a way to obtain the user's password information. Is there a good way to obtain the password and pass it to the REST API? Would there be a way to obtain the password if it's an unsupported API? Alternatively, is there another authentication method that does not involve directly passing the password to REST API? If there is no viable method, we are considering requiring users to enter their password for this process.
3 REPLIES 3
Sandeep_S_Desai
14-Alexandrite
(To:shin1h)

If using LDAP, try getSingleValue(WTUser.AUTHENTICATION_NAME)
https://www.ptc.com/en/support/article/CS24336

Hi @Sandeep_S_Desai 

It is not customer viewable 

HelesicPetr_0-1713771514975.png

PetrH

achirila
Moderator
(To:shin1h)

Hi shin1h

It looks like you have some responses from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 

Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Regards,
Andra
Top Tags