how to I specify mAccessLevel during DACS user creation via API.

DacsWSClient.py.txta.py.txtI am using Dacs Web Service API to automate Dacs Admin user creation for Dacs 6.6. I am implementing it using suds.client python library to call the API. Method I am calling is - createDacsAdministratorDefinition( DacsAdministratorLogin, DacsAdministratorDefinition ).

While setting the DacsAdministratorDefinition, I am getting error if I am not setting mAccessLevel variable.

[gblu9012088.eu.hedani.net][UAT]:gmdadmin:>./a.py

Some error

FAILURE

2064

DACS Administrator access level required.


But when I set mAccessLevel, I am getting Type not defined error. Can you please help ? suds.TypeNotFound: Type not found: 'mAccessLevel'

My sample code is attached.

Tagged:

Best Answer

  • sagar.gadge
    sagar.gadge Newcomer
    Answer ✓

    Solved the issue.

    The documentation mentions variable name as mAccessLevel .

    But in actual API implementation, the last character is missing. So, I used 'mAccessLeve' and the issue got solved.

    May be the documentation needs update, as API update will cause the existing users to update the code !!

Answers