Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Getting & Setting Security Policies
tshields
Hi,
I am trying to create a catalog folder within my workspace. I get an "Invalid security usage state" when I call the update. I have played around with set security policies but as yet have not anything to work.
Any advice, particulary on setting & getting Security Policies would be appreciated.
Thanks
T
public void CreateCatalogFolder(string sKSID, Workspace workspace, string sDomain, string sOwnerUserId)
{
try
{
string sWorkspaceName = workspace.getName();
Catalog catalog = (Catalog)library.getObjectById(sKSID);
CatalogFolder catalogFolder = catalog.createCatalogFolder();
catalogFolder.setName(sWorkspaceName);
//facility = workspace.getFacility();
//SecurityPolicy policy = facility.getSecurityPolicy();
//catalogFolder.setSecurityPolicy(policy);
catalogFolder.update();
}
catch (System.Exception exception)
{
throw exception;
}
}
Find more posts tagged with
Comments
Migrateduser
Is this customization related to TeamSite, MediaBin or WorkSite. It would be helpful if you could provide more infomration about the environment and error message.
Were you able create the folder using the standard interface so that you can test if the user has permissions.
tshields
Thanks for your reply. I have managed to fix it. Thanks again.
Migrateduser
Can you describe the issue and solution in detail so that it might help me if I come accros this.
Nicholas
This post was in context to the WorkSite MP and WOM API.
Btw WSMP forum is best for WSMP related problems.
Thanks Nicholas