• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Admin API Error

Guest
Dec 29, 2008 Dec 29, 2008

Copy link to clipboard

Copied

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#">
TOPICS
Advanced techniques

Views

258

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Dec 29, 2008 Dec 29, 2008

Copy link to clipboard

Copied

LATEST
I suspect that because cfinvoke has attributes for username and password that you need to specify these values in cfinvokeargument tags.

See code.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation