scUsername is what exactly (.Net example code)

Posted: November 7, 2008, 12:56pm
scUsername is what exactly (.Net example code)

static String wsUsername = "ENTER WS USERNAME HERE";
static String wsSecret = "ENTER WS SHARED SECRET HERE";
static String scUsername = "ENTER VALID SC USERNAME HERE";

I am assuming that the wsUsername and wsSecret are taken from the info on the Manage Web Services section of the Admin UI. But the scUsername does not ring any bells for me after reading everything in the documentation. Did I miss something obvious? What is the scUsername?
Thanks,
Tony

scUsername is used on line

scUsername is used on line 22:

login l = ws.PermissionsGetLogin(scUsername);

This was just to demonstrate a call to Permissions.GetLogin which requires a valid SiteCatalyst username as its parameter.

In order to authenticate to the API you only need your Web Services username and shared secret.

J

User Name Format

What is the correct format for the userName in the example? My company has a space in the name. Copying my Web Service User Name "mcairns807:AOL UK" into the code results in an exception of "Invalid User Specified", what is the correct format for user names?

scUsername should be your

scUsername should be your SiteCatalyst username not the web services username. Change scUsername to mcairns807 and you should be set.