<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Create users using webapi</title><link>https://community.appian.com/discussions/f/general/38412/create-users-using-webapi</link><description>I have a requirement in which I need to create a webapi which will create users in appian.In webapi,we are providing the userid as an input and with that Id I need to invoke a processmodel which will create user in appian and add the user to respective</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Create users using webapi</title><link>https://community.appian.com/thread/144856?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 16:05:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:75a3c56c-ee83-4c09-9521-037c877f6114</guid><dc:creator>Stefan Helzle</dc:creator><description>[quote userid="64393" url="~/discussions/f/general/38412/create-users-using-webapi/144855"]Next concern is how the parameters(wwid,firstname,lastname,email,role)which i passed in body&amp;nbsp; will come from external system to webap[/quote]
&lt;p&gt;Not sure what you mean. Line 2 parses the JSON string from the HTTP body.&lt;/p&gt;
[quote userid="64393" url="~/discussions/f/general/38412/create-users-using-webapi/144855"]also i need guidance how it can be authenticated[/quote]
&lt;p&gt;&lt;a id="" href="https://docs.appian.com/suite/help/24.4/Web_API_Authentication.html"&gt;https://docs.appian.com/suite/help/24.4/Web_API_Authentication.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create users using webapi</title><link>https://community.appian.com/thread/144855?ContentTypeID=1</link><pubDate>Tue, 28 Jan 2025 15:26:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:23c75aa4-3c70-491c-927e-3030f88e7e66</guid><dc:creator>salinis025007</dc:creator><description>&lt;p&gt;Thanks for the guidance...I created webapi using start process template and it is working fine..Next concern is how the parameters(wwid,firstname,lastname,email,role)which i passed in body&amp;nbsp; will come from external system to webapi?also i need guidance how it can be authenticated&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!data:if(
    isnull(http!request.body),
    {},
    a!fromJson(http!request.body)
  ),
  a!startProcess(
  processModel: cons!MDA_ADD_USER,
  /* A dictionary or map of parameters passed to the process model */
  processParameters: {
    wwid: local!data.wwid,
    firstname: local!data.firstname,
    lastname: local!data.lastname,
    email: local!data.email,
    role: local!data.role
  },
  isSynchronous: false(),
  /* This expression will run when the process is started (when run asynchronously) or completed (when run synchronously) */
  onSuccess: a!httpResponse(
    statusCode: 200,
    headers: {
      a!httpHeader(
        name: &amp;quot;Content-Type&amp;quot;,
        value: &amp;quot;application/json&amp;quot;
      )
    },
    body: if(
      a!isNotNullOrEmpty(fv!processInfo),
      a!toJson(fv!processInfo),
      null()
    )
  ),
  /* This expression will run if the process fails to start */
  onError: a!httpResponse(
    statusCode: 500,
    headers: {
      a!httpHeader(
        name: &amp;quot;Content-Type&amp;quot;,
        value: &amp;quot;application/json&amp;quot;
      )
    },
    body: a!toJson(
      {
        error: &amp;quot;There was an error starting the process&amp;quot;
      }
    )
  ),
  /* If the process is started synchronously, this expression will run if the process does not complete in 30 seconds */
  /*onIncomplete: a!httpResponse(*/
  /*statusCode: 504,*/
  /*headers: {*/
  /*a!httpHeader(*/
  /*name: &amp;quot;Content-Type&amp;quot;,*/
  /*value: &amp;quot;application/json&amp;quot;*/
  /*)*/
  /*},*/
  /*body: a!toJson(fv!processInfo)*/
  /*)*/
  
))&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create users using webapi</title><link>https://community.appian.com/thread/144816?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 17:16:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:80f9df11-67e1-40cb-855c-0bc9b3d286e4</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;When creating a new web API, there is a template to start a process.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create users using webapi</title><link>https://community.appian.com/thread/144815?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 17:02:31 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ca48ae47-afce-4587-8c0d-b1b1d7bf3f19</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;Please follow the below link.&amp;nbsp;&lt;br /&gt;&lt;a href="https://docs.appian.com/suite/help/24.4/Ways_to_Start_a_Process_From_a_Process.html#starting-a-process-from-outside-appian"&gt;docs.appian.com/.../Ways_to_Start_a_Process_From_a_Process.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Create users using webapi</title><link>https://community.appian.com/thread/144814?ContentTypeID=1</link><pubDate>Mon, 27 Jan 2025 16:56:04 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a76be8c2-5251-499b-9213-d38e7895e545</guid><dc:creator>David Jimenez </dc:creator><description>&lt;p&gt;Start with official doc... it&amp;#39;s pretty simple and you have on hands&amp;nbsp; tutorials about it...&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.appian.com/suite/help/24.4/Web_API_Tutorial.html"&gt;docs.appian.com/.../Web_API_Tutorial.html&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>