Sharepoint Forum

Ask Question   UnAnswered
Home » Forum » Sharepoint       RSS Feeds


  Asked By: Aiesha    Date: Jul 10    Category: Sharepoint    Views: 1751

I was able to resolve this issue by making a change.
The following line in XAP.CS was causing the issue.
System.Xml.XmlTextReader reader = new
I changed it to
System.Xml.XmlTextReader reader = new XmlTextReader(strResourceName);
That resolved trying to create the "usermap" for the subweb.

Now when I'm trying to "add" the permissions back to the new web that
I created I receive the following error:
WSSUserUtil Version 2.5.2595.23546
!----->WARNING!!!!! Syntax Error
!----->WARNING!!!!! Required argument usermap not specified
I don't understand why it is looking for the "usermap" argument when
the command to add permissions is as follows:

C:\SPUtilSiute_Release2.5\SPUtilSuite\WSS\SPUserUtil>wssuserutil -o
add -url
rbcportal.fg.rbc.com/.../TestWSSPermissionsMigration -webfile



3 Answers Found

Answer #1    Answered By: Vinay Thakur     Answered On: Jul 10

Actually, I'm not sure why that's fixing your problem of it wanting the usermap

The probably was probably in the syntax file, not the argument processor.

See blogs.msdn.com/.../602057.aspx where I note
that it was a required operation but wasn't used...It meant that I needed to fix
the syntax file, not the argument processor.

The Syntax file was compiled into WSSUserUtil as a resource file, so it looks to
me that all you did was prevent it from reading from the compiled in resource,
to something else

I recommend changing it back, putting in a dummy usermap, and riding with that

Answer #2    Answered By: Elaine Mack     Answered On: Jul 10

Actually by adding the usermap file as well it worked!

C:\SPUtilSiute_Release2.5\SPUtilSuite\WSS\SPUserUtil>wssuserutil -o add  -url
<rbcportal.fg.rbc.com/.../TestWSSPermissionsMigration> -usermap
-webfile C:\TestWSSUserUtilPermissions-webs.xml

I'm still puzzled over this though.
Your documentation does says to use only the -webfile when readding the

Answer #3    Answered By: Baiju Hoskeri     Answered On: Jul 10

You are correct...the documentation that was included in the package says to use
only the -webfile when reading the permissions.

I later found out I left a "requirement" check for the -usermap switch, even
though it wasn't needed, thus the reason I wrote the following comment on my
blog posting I just referred to:.

"5. Use the add  operation to add these users with their prescribed rights to

WSSUserUtil -o add -usermap singleuser.xml -webfile c:\addusers.xml -verbose

Note: The usermap operation is a required parameter even though is NOT used in
the add operation. This is a small inconsistency that will be corrected at a
later date."

I put that out there, because the documentation included would not be updated
till a later date, as well, to have some way to let approximately 50,000 users
who downloaded it be aware

Didn't find what you were looking for? Find more on WSSUSERUTIL Or get search suggestion and latest updates.