Skip to main content
December 29, 2008
Question

Admin API Error

  • December 29, 2008
  • 1 reply
  • 285 views
I am attempting to use the Admin API to add a user to coldfusion. However when I call the setUser method and pass in a username and password I get the error "The USERNAME parameter to the setUser function is required but was not passed in." The call to the setUser method is below. can anyone see why this might be failing? I have even tried hard-coding the values and it still gives the error.

<cfinvoke component="cfide.adminapi.security" method="setUser" UserName="#ARGUMENTS.newuser#" password="#ARGUMENTS.newuserpassword#">
This topic has been closed for replies.

1 reply

Inspiring
December 29, 2008
I suspect that because cfinvoke has attributes for username and password that you need to specify these values in cfinvokeargument tags.

See code.