cannot find user-plugin-id.grv

0 views
Skip to first unread message

Dino Anzellotti

unread,
Nov 25, 2009, 12:40:33 PM11/25/09
to Velo
Hi guys,
I'm looking for the user id plugin, but I cannot find it.
Is there anyone can help me?

Many thanks

Trouby

unread,
Nov 25, 2009, 10:44:09 PM11/25/09
to Velo
Hey,

Velo has to know how to create the user name,
Most common scenario is that it just generated by some attributes
(like firstname+lastname) or whatever you wish,

Create a new file under VELO_HOME/velo_ws/scripts/user-plugin-id.grv

Here's an example of a small script that will take FIRST_NAME +
LAST_NAME attributes, combine them together as the user name:

--
def userIdAttrs = context.get("userIdAttrs");

fName = userIdAttrs["FIRST_NAME"].firstValue.asString;

lName = userIdAttrs["LAST_NAME"].firstValue.asString;
String finalUserId = fName + "." + lName;

context.set("userName",finalUserId);
--


Asaf.

Dino Anzellotti

unread,
Nov 26, 2009, 6:19:56 AM11/26/09
to Velo
Thanks!

Reply all
Reply to author
Forward
0 new messages