My colleague Gaurav found this:
Make a text file with a list of users to add or delete, one on each line, e.g. user.txt:
In the command prompt or bat file run something like this:
D:\QlikView\Support Tools\Tools\qv-user-manager\qv-user-manager.exe --add dms --document DMS_test.qvw < user.txt
Substitute the path, document name and text file as appropriate.
It picks up the file referenced and returns the number processed (it allows for existing entries, so no duplicates / errors).
There may be another way to run this but this approach works for us.
I've experimented with DMS and CAL assignment using qv-user-manager in QV10, and it works pretty well. In my example i load users from a file, and assign a cals and dms by executing qv-user-manager directly from the script.
In the example below, the usernames are piped to qv-user-manager instead of being read from a txt file. Adding CALs is similar (just use "--add cal" instead).
EXECUTE cmd.exe /C (ECHO domain\user1 && ECHO domain\user2 && ECHO domain\user3) | "C:\DMSPop\qv-user-manager" --add dms --document "docname.qvw"
I have a quick question on the powertool:
How can i import cal data back into the QV Server?
When you run the example command "qv-user-manager.exe --list cal > cals.csv" you get a csv file listing the named CALs and Doc CALs, which is great.
I'd like to import that file back into the server (i.e disaster recovery), is there a quicker way to import this data again?
if you check the readme file of qv-user-manager, you will see lots of helpful examples. See "Examples for populating DMS users". The syntax is the same for populating CALs, you just need to replace "--add dms" with "--add cal".
If you have several documents with doc CALs, you probably need to run the "--add cal" command separately for each document.