Retrieve folder owner details (in Miscellaneous  tab)  from KM

Dear Experts,
I am trying to get the owner details of a folder created under (folder name)>settings>properties-->Miscellaneous (tab) -->Owner
I am using the below code which I got from SDN. But it is getting the users (cmadmin_service/ice_service) instead of owner name.
IUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
IResourceContext rc = new ResourceContext(user);
String kmlocation = "path to ur folder";
RID rid = RID.getRID(kmlocation);
IResource resource = ResourceFactory.getInstance().getResource(rid, rc);
ISecurityManager sm = resource.getRepositoryManager().getSecurityManager(resource);
IAclSecurityManager asm = (IAclSecurityManager)sm;
IResourceAclManager ram = asm.getAclManager();
IResourceAcl ra = ram.getAcl(resource);
if(ra==null) {
    ra = ram.getInheritedAcl(resource);
IUMPrincipalList pal = ra.getOwners();
Is there any other API available to read the owner information?
Any configurations required to meet the above requirement?
Thanks
Chinna.

Hi
Code you have posted will return the permission owners of the KM resource. i.e, list the users available under Details > Settings > Permissions > Permission owners.
Owner available in the miscellaneous tab is a metadata property and you can retrieve the value of that owner property (userid) with code below.
IUser = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
IResourceContext rc = new ResourceContext(user);
String kmlocation = "path to ur folder";
RID rid = RID.getRID(kmlocation);
IResource resource = ResourceFactory.getInstance().getResource(rid, rc);
IPropertyName propertyName = PropertyName.getPN(IWcmConst.SAP_WCM_NAMESPACE,"owner");
IProperty property = resource.getProperty(propertyName);
String userid = property.getStringValue();
Regards,
Yoga

Similar Messages

  • How to fetch KM folder owner by java API in JSPDynpage

    Hi All,
    we have an application accessing KM folders using KM APIs, using some of them we could get folder name created bye, modified by etc.
    but to fetch the owner of the folder (specified in the properties-->mislenous) we couldn't fined any method.
    can somebody help us to retrieve folder owner(s) list with some API / code.
    Thanks in advance,
    Sai

    Hi Yogalakshmi,
    I tried your below code, at all times the ACLmanager is always null.
    so when, even the inherited ACL is null I am creating acl with the same resource.
    at this time I am getting object for owners but its displaying ice_service instead of my user ID.
    what this ice_service, how to get the actual owners.. below is my code..
    public void getOwnersList(String folderID){
                try{
                      IUser user = WPUMFactory.getServiceUserFactory().getServiceUser("cmadmin_service");
                      IResourceContext rc = new ResourceContext(user);
                      RID rid = new RID(folderID); // here could not get .getRID() method...
                      IResource groupFolder = ResourceFactory.getInstance().getResource(rid, rc);
                      ISecurityManager sm = groupFolder.getRepositoryManager().getSecurityManager(groupFolder);
                      IAclSecurityManager asm = (IAclSecurityManager)sm;
                      IResourceAclManager ram = asm.getAclManager();
                      IResourceAcl ra =  ram.getAcl(groupFolder);
                      if(ra==null) {
                          ra = ram.getInheritedAcl(resource);
                          if(ra==null)
                                 ram.createAcl(groupFolder);
                                IUMPrincipalList pal = ra.getOwners();
                                IUMPrincipalListIterator it = pal.iterator();
                                while(it.hasNext()){
                                         IUMPrincipal pl = it.next();
                                         response.write("<br> pl.getDisplayName()"+pl.getDisplayName());
                                        response.write("<br> pl.getDisplayId()"+pl.getDisplayId());
                catch(Exception ex){
                      response.write("Exception ="+ex.getMessage());
                return null;
    Thanks & Regards,
    Sai Krishna
    Edited by: Konchada Sai Krishna on Sep 1, 2009 12:39 PM

  • Audio keeps playing when opening multiple new tabs from bookmarks folder

    Hi,
    Just wondering if anyone has noticed this behaviour in Safari and if its intentional or perhaps a bug.
    If I have a website open with some audio playing (like a youtube video etc...) and then open some new tabs from a bookmarks folder by choosing "Open in Tabs", the audio from the video in the previous tab will keep playing in the background. However, any tabs that were open before (including the one with the audio) seems to have been automatically closed when choosing the "Open in Tabs" option so there doesn't appear to be a way to stop the audio, other than closing Safari.

    You're welcome.
    Could you please click the "''Solved It''" button next to the post which solved the problem for you? This will help others searching for a solution to the same question.
    Thanks.

  • I brought a iphone 5c from ebay, when i recieve the i item its loked with i cloud, and also had a tmobile sim card in the slot...now i cant access the phone because its locked with i cloud,i do not have the owner details to contrac him,,

    i brought a iphone 5c from ebay, when i recieve the i item its loked with i cloud, and also had a tmobile sim card in the slot...now i cant access the phone because its locked with i cloud,i do not have the owner details to contrac him....but i called to tmobile, they said this phone is not a stolen one,,thet told me to contrac apple.....is apple can unlock the icloud?

    Plug your phone into the wall charger for at least 30 minutes...make sure you have a sim card in the phone...then:
    Leave the USB cable connected to your computer, but NOT your phone, iTunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.
    Make sure you have no anti-virus software running or any firewalls...turn all of that stuff off.

  • How to Remove Nike +Ipod Tab from Itunes, Iphone Summary folder

    I stupidly plugged in my Iphone 3Gs to a new Matrix Nike bike at the gym. When I sync'd my Iphone to my desktop Imac today I noticed this new tab (Nike +Ipod) in my Iphone summary folder menu tabs.
    The built-in Nike app that is listed in settings on my Iphone is off. I'm not interested in tracking my workouts or anything from Nike. Just want the folder tab gone from Itunes.
    How do I delete this tab from Itunes on my computer?
    No more plugging it at the gym for me. Thanks for the help. Alice

    I too tested out the nike+ and want to remove the tab that has now appeared in my iTunes summary!
    I turned off the the app on my iPhone and still it appears. Nothing in Prefs either.

  • Can't open tabs from previous session (after Firefox regularly closed)?!

    Regularly closed firefox 36.0.4. and shot down computer (Windows 7 Pro 64-bit).
    On next start, Firefox doesn't open tabs from previous session (altought it is configured to do this) !?!?!?
    I lost about 30 tabs!!
    Very, very frustrating!!!
    Think to finish using Firefox forever!!!!!

    Don't exit Firefox! Or if you already did, don't start it back up again!
    ''If Firefox is running:'' Open your current Firefox settings (AKA Firefox profile) folder using either
    * "3-bar" menu button > "?" button > Troubleshooting Information
    * (menu bar) Help > Troubleshooting Information
    * type or paste about:support in the address bar and press Enter
    In the first table on the page, click the "Show Folder" button. This should launch a new window listed various files and folders. For best results, change the view to "Details".
    (''If Firefox not running, get to this folder by pasting the following in the Run box on the start menu and pressing Enter:'' %APPDATA%\Mozilla\Firefox\Profiles ''and then double-click into the most recently updated semi-randomly-named folder you find there.'')
    In the window that launches, scroll down and double-click into the '''sessionstore-backups''' folder. Save all files here to a safe location, such as your Documents folder, so Firefox doesn't overwrite them. We may be able to use them to recover your lost tabs.
    Also, if you return to the main level of the profile folder, you may find some sessionstore files. Copy those to the safe location as well.
    Could you report back on what you found?
    Note: If Windows hides the .js file extension from you, you can change a setting so that you can see all file extensions (this helps when renaming files). This support article has the steps: http://support.microsoft.com/kb/865219 or http://windows.microsoft.com/en-us/windows/show-hide-file-name-extensions
    The kinds of files you may find among your sessionstore-backup files are:
    * recovery.js: the windows and tabs in your currently live Firefox session (or, if Firefox is closed, your last session)
    * recovery.bak: a backup copy of recovery.js
    * previous.js: the windows and tabs in your last Firefox session
    * upgrade.js-''build_id'': the windows and tabs in the Firefox session that was live at the time of your last update

  • Retrieving the Destination details of a publication

    Hi there,
    I have a requirement to retrieve the Destination details from an existing publication and copying that (or setting the same) to a new publication.
    Can someone point out the code/APIs that I would need to use for this?
    I spent some time going through the methods & props of a publication and could not find anything.
    Thanks in advance for your help.

    Please ignore my previous request. Actually, what I require is, to set up a publication to burst a report into multiple reports. All this via code.
    For this I have set the Dynamic Recipient section with a crystal report template as source doc. I have also mapped the fields from the source doc to send the Publication. i.e. set the Recipient Identifier, Full name and Email.
    I have also set up the Personalization section and mapped it appropriately.
    Now I want the files to be generated in a destination folder and each file to be named uniquely based on the unique field which is used for bursting (as specified in the Personalization).
    So I set the destination for the publication as File System and in the Use Specific Name section, put the following-
    %SI_NAME%_%SI_USERFULLNAME%.%EXT%
    The publication gets saved appropriately with these details.
    However, in the file names, the %SI_USERFULLNAME% is replaced with the user that is running the code instead of the unique ID that is mapped in the publication.
    What am I doing wrong?
    Part of the code is as below-
    // Set destination folder
    string destinationQueryString = @"Select * from CI_SYSTEMOBJECTS Where
                                SI_PARENTID=29 And SI_NAME = 'CrystalEnterprise.DiskUnmanaged'";
    InfoObjects destinationObjects = infoStore.Query(destinationQueryString);
    schedulingInfo = newPublication.SchedulingInfo;
    //schedulingInfo.Destination.Clear();
    if (destinationObjects != null && destinationObjects.Count > 0)
        StringBuilder destinationPath = new StringBuilder();
        InfoObject destinationObject = destinationObjects[1];
        DestinationPlugin destinationPlugin = (DestinationPlugin)destinationObject;
        DiskUnmanaged diskUnmanaged = (DiskUnmanaged)destinationPlugin;
        DestinationOptions destinationOptions = diskUnmanaged.ScheduleOptions;
        DiskUnmanagedOptions diskUnmanagedOptions = new DiskUnmanagedOptions(destinationOptions);
        destinationPath.Append(@"F:\CeesReportingPOC\GeneratedReports\")
            .Append("%SI_NAME%_%SI_USERFULLNAME%_%SI_EMAIL_ADDRESS%.").Append(schedulerInfoEntity.ReportFormat);//.Append(schedulingInfo.)
        diskUnmanagedOptions.DestinationFiles.Add(destinationPath.ToString());
        schedulingInfo.Destination.SetFromPlugin((DestinationPlugin)destinationObject.PluginInterface);
    newPublication.Save();
    infoStore.Schedule(newPublicnInfoObjects);

  • *Error retrieving some or all of your defaults from the SAP SRM system*

    NULL Value in field when user tries to update their MYDEFAULT personal details in the MYBUSINESS webportal
    http://imageshack.us/photo/my-images/62/mydefaults.png/
    Error retrieving some or all of your defaults from the SAP SRM system
    SAP 640 GUi on WINXP
    any ideas?

    Hi,
    Are you enable POP account in internal Exchange server or using POP from ISP outside?
    Check File > Accounts Setting > Email > Select this account > Change > More Setting... > Outgoing Server tab > Check the first box: My outgoing server (smtp) requires authentication and don’t circle: Log on to incoming mail server before
    sending e-mail.
    If you are using check the LDAP, please also check the server address is correct or connection port is right.
    If there is nothing wrong with your client. The problem could be on the mail server. Sometimes it could be due to maintain of the mail server of your recipient, and it is not available . You can give a try other time. If still failing, very possible the
    email is no longer available.
    Please let me know the result and feel free to post back.
    Tony Chen
    TechNet Community Support

  • TS4003 Now have iCloud mail. But the 'Sent' folder messages (only) did not transfer from MobileMe Mail

    Now have iCloud mail. But the 'Sent' folder messages (only) did not transfer from MobileMe Mail.

    Your first theory may be correct.
    If you haven't already, change your password on your .mac account. That will stop any further action by the other fellow. Even if you can't tease out the detail of what happened exactly, you can at least fix the problem with the password change.
    Also if you left on good terms, contact the new owner of the workMac and ask if s/he used your .mac account.

  • Every time I launch Firefox 4 it opens 3 or 4 blank windows, no longer opens the tabs from the previous session and does not show my bookmarks sidebar.

    I have to manually close the extra windows and restore the tabs from the previous session, and reopen the sidebar. In disgust I uninstalled Firefox 4 and reinstalled 3.6. Everything works fine in 3.6. Looks to me like Firefox 4 has many major bugs and is not yet ready for prime time. I'll stay with 3.6 for now.

    This can be a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.<br />
    You will have to redo App Tabs and Tab Groups after deleting sessionstore.js.
    See:
    * http://kb.mozillazine.org/Session_Restore

  • "show my windows and tabs from last time" does not work after upgrade to 8.01

    After I upgraded to the latest v8.01 I have lost all my tabbed sites and even when trying to add them and save them with the Tools>Options>General>Start up>when Firefox starts selected feature "show my windows and tabs from last time" it does not hold the saved sites and when browser is restarted it always loses all the tabs and only shows one tab with Firefox home webpage. I need to have several sites open to work and the only way to do that now is to make sure I click the "Use current pages" under General Option in Tools. It is getting very annoying because I keep changing my tabs to different websites during a session and I am used to just closing the browser, relying on having them all back in when restarting Firefox.

    Make sure that you do not use Clear Recent History to clear the <i>Browsing History</i> when you close Firefox.
    *https://support.mozilla.com/kb/Clear+Recent+History
    *https://support.mozilla.com/kb/Firefox+does+not+ask+to+save+tabs+and+windows+on+exit
    It is possible that there is a problem with the files sessionstore.js and sessionstore.bak in the Firefox Profile Folder.
    Delete the sessionstore.js [2] file and possible sessionstore-##.js [3] files with a number and sessionstore.bak in the Firefox Profile Folder.
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    * http://kb.mozillazine.org/Profile_folder_-_Firefox
    Deleting sessionstore.js will cause App Tabs and Tab Groups and open and closed (undo) tabs to get lost, so you will have to create them again (make a note or bookmark them).
    See also:
    * [1] http://kb.mozillazine.org/Session_Restore
    * [2] http://kb.mozillazine.org/sessionstore.js
    * [3] http://kb.mozillazine.org/Multiple_profile_files_created

  • Administrator cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2

    Hello, dear Colleagues.
    User with administrators rights cannot change printer properties on "Advanced" tab from "Devices and Printers" on Windows Server 2012 R2. 
    If to launch "Devices and Printers" on server, all printer properties on "Advanced" tab are inactive (see screen below). 
    But I can change it manually with "Print Management". Features become active.
    The main purpose - to uncheck "Enable advanced printing features"  with powershell
    scripts.
    $erroractionpreference = "continue"
    $colPrinters = Get-Wmiobject -Class win32_printer -computername print_server -Filter "Name like 'printer1' or Name like 'printer2' or Name like 'printer3' or Name like 'printer4' or Name like 'printer5' or Name like 'printer6'" # get printers on server and filter with names
    ForEach ($objPrinter in $colPrinters) { # get printer details from WMI
    If ($objPrinter.RawOnly -ne "True") { # check that Advanced printing fetaures is turned on
    Write-host $objPrinter.Name
    Write-Host $objPrinter.RawOnly
    $objPrinter.RawOnly = "True" # Untick and update the object in WMI
    $objPrinter.Put()
    It works on Windows 7 workstation, but does not on print server Windows Server 2012 R2 with error
    Exception calling "Put" with "0" argument(s): "Generic failure "
    At \\print_server\c$\DisableAdvancedPrintingFeatures.ps1:8 char:17
    + $objPrinter.Put()
    + ~~~~~~~~~~~~~~~~~
    + CategoryInfo : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : DotNetMethodException
    Can you help me with that? Look like somethings with rights.
    Thank you.

    Hello, Alan
    Morris.
    Thanks for your reply.
    I've tried to runs PS Script both locally and remotely, previously running Powershell ISE as Administrator.
    I've noticed interesting thing - if to
    check "Enable advanced printing features"
    manually thru Print Management snap-in, script works fine. But, time to time after some manipulations on print server, this advanced feature returns to enabled state automatically by system, I think. In this case PS Script does not work. Next, if to disable
    feature manually again (thru Print Management snap-in),
    and enable manually again, PS Script will work. Very strange situation.
    Thanks.

  • How to remove Competetors TAB  from PCUI Opportunity create trx

    Hi Group,
    we are using CRM 5.0, i want to remove Competitor's TAB from PCUI Opportunity Transaction. i see a option in CRMC_BLUEPRINT_C transaction-> Application/Layout->Define layout of the people-centric UI(Customizing tool). here i went to CRMD_BUS2000111-> Version 1-> Static model-> Tabpage groups-> OPP_1: when i clicked on this i got all Tab's details. but when i tried making OPP_HD_COMP "Inactive" and hit Save that Check mark goes away. tried many times but did not help.
    then i tried going to CRMC_BLUEPRINT_C transaction->Application element-> tab page group structure->OPP_1: here i dont see any entries. do i have to add all Opportunity Tab's  details here or only the Competetor tab details?
    Please let me know does anybody see all Tab's data here or you just enter all Tabs data manually in CRM 5.0? also how can i remove Competetors Tab? your help is appreciated and awarded.
    regards,
    Anu.

    Hello Anu,
    WHen you are in CRMC_BLUEPRINT_C transaction->Application element-> tab page group structure->OPP_1, go to edit mode and import the standard entries from CRMC_BLUEPRINT (on of the buttons on the screen).
    Then, for the tab you don't want to see, just put it as inactive (if not possible, just delete the line, you can always come back to the standard by importing the S tables again).
    Regards,
    Frédéric

  • Fire fox opens with tabs from preveous session not home page in tools under options and tab general I have start up with home page but all tabs from previous session open instead

    fire fox opens with tabs from preveous session not home page in tools under options and tab general I have start up with home page but all tabs from previous session open instead

    It is possible that there is a problem with the files [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    * Help > Troubleshooting Information > Profile Directory: Open Containing Folder
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    Deleting sessionstore.js will cause App Tabs and Tab Groups to get lost, so you will have to create them again (make a note).
    See:
    * http://kb.mozillazine.org/Session_Restore

  • How to open "All Tabs" from previously shown pages history?

    Hi,
    How to open "All Tabs" from previously shown pages history. I am not asking about "Reopen from last session". I am asking about how to open all tabs from previous webpage links from a past date from history, currently its allowing me to select each page link manually by clicking it.
    Thank you!

    Select the first item you wish to open, scroll down to the last, Shift-click that one & all those between should be selected too. Double-click on them & they should all start to open... or you can copy & then drag/paste into a new or existing bookmarks folder.

Maybe you are looking for