Security

Expand all | Collapse all

In product scripting - User List

  • 1.  In product scripting - User List

    Posted Tue March 19, 2019 02:57 PM
    Hi all,

    I tried generating list of users from in product scripting but failed. Is there a way were we could get list of current users ?

    Use case - I am trying to create select list with all list of users, where owner can be selected for a task.


    Regards,
    Venky

    ------------------------------
    Venkatesh Siddi
    ------------------------------


  • 2.  RE: In product scripting - User List

    Posted Wed March 20, 2019 09:30 AM
    Hello Venky,

    Thanks for contacting us.

    Just to be sure, when you said "product scripting", you are referring to Customization->Scripts, right? 

    Thanks,



    ------------------------------
    Yongjian Feng
    Software Developer
    Resilient IBM
    ------------------------------



  • 3.  RE: In product scripting - User List

    Posted Wed March 20, 2019 01:06 PM
    Yes, Scripts feature.

    ------------------------------
    Venkatesh Siddi
    ------------------------------



  • 4.  RE: In product scripting - User List

    Posted Wed March 20, 2019 01:15 PM
    Ok, just talked to a guy familiar with in-product script. There is not support to do that from the in-product script.

    An alternative way is to use our function. Instead of doing it from a script, create a workflow, and call a function. A function can call our REST API. There is an endpoint /orgs/{org_id}/users. A function can get user information from that endpoint.

    Thanks,

    ------------------------------
    Yongjian Feng
    ------------------------------