Skip to main content
13-Aquamarine
April 18, 2024
Question

Authentication methods when calling REST API with workflow robots

  • April 18, 2024
  • 2 replies
  • 1135 views

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.

2 replies

14-Alexandrite
April 19, 2024

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

HelesicPetr
22-Sapphire II
22-Sapphire II
April 22, 2024

Hi @Sandeep_S_Desai 

It is not customer viewable 

HelesicPetr_0-1713771514975.png

PetrH

5-Regular Member
April 22, 2024

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.