Create user RMP connector: User Metadata

324 views
Skip to first unread message

somesh.m...@gmail.com

unread,
Sep 16, 2013, 2:01:34 PM9/16/13
to suppor...@runmyprocess.com, somesh.m...@ieee.org
Hi,

I have been able to use the RMP Secured Connector - "Create a new user" to create RMP Accounts successfully. But from the connector documentation and request payload, there seem to be no way to insert values into the User metadata custom fields, while creating the user.

Can you please suggest a way to insert values into the user metadata attribute, while creating a new RMP user account? We have a Member_Number metadata field on the User Account and this drives the experience for every user that logs into our RMP application. Hence, there is a need to be able to set the value for Member_Number while creating the RMP User account.

Thanks!

somesh.m...@gmail.com

unread,
Sep 16, 2013, 5:00:27 PM9/16/13
to suppor...@runmyprocess.com, somesh.m...@ieee.org, somesh.m...@gmail.com
Digging into the User guide: I read this Freemarker example:

https://sites.google.com/a/runmyprocess.com/user-guide-runmyprocess/3---developer-guide/processes/freemarker-code/get-and-update-users-metadata

If the create account api does not facilitate feeding the metadata in, is it a good idea to update the data using the Freemarker explained in the tutorial above once the user account has been created?

Please provide your feedback. Thanks!

Dimitri MELCHIOR Pro

unread,
Sep 16, 2013, 7:12:02 PM9/16/13
to RunMyProcess Support Forum, somesh. mukherjee, Somesh Mukherjee
Hi Somesh,

1 - you will not be able to set users' metadata in the same time as creating it. (url for user creation is ..config/${P_customer}/user/ while updating users requires that you specify the user id wuth that url : ..config/${P_customer}/user/${user_id}/).

2 - Indeed, you should use the save_user_metadata() function (as output variable of user creation). The API were created for that use. Nevertheless, let me give you the PUT request you must send (in case you want to bypasse the save_user_metadata() function) :

<title>${userName}</title>
<rights>(c) RunMyProcess</rights>
<entry>
<title>${userName}</title>
<category term="status" label="ACTIVE"/>
<category term="profile" label="USER"/>
<author>
<name>${userName}</name>
<email>${userEmail}</email>
</author>
</entry>
<entry>
<title>extension</title>
<content type="text/base64">${encrypt('BASE64',metadata_json)}</content>
</entry>
</feed>

Best regards.

--

Dimitri MELCHIOR

PreSales Consultant

     

Fujitsu RunMyProcess user? Please add a review on GoogleApps Marketplace

Afin de contribuer au respect de l'environnement, merci de n'imprimer ce message qu'en cas de nécessité.
Be environmentally friendly: do not print this email unless it is entirely necessary.



--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "RunMyProcess Support Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at http://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/b50888e8-a412-4462-8723-e2a32d3db686%40runmyprocess.com.

Reply all
Reply to author
Forward
0 new messages