Get Community ID list using user id in 4.5

Need to get a list of communities a user belongs to by his userid. Anyone done this?
M

You have to develop 2 files. First, for example, CommunityProxy.asp. This file has to be placed into the Plumtree directory and works with Plumtree API you need. The code looks like:
ASP
' Put here what you wantResponse.AddHeader "Groups","....."
Then you develop remote file (as a part of your remote portlet), in my case it was Java class. The point that you can get all information you need from http (the same way as Plumtree did). If you need send to remote ASP file some information (UserId for example put one in URL) In Java it looks like:
JAVA...
String strURL = "http://"+portalname+"/portal/common/CommunityProxy.asp?UserId=...";
URL url = new URL(strURL);HttpURLConnection conn;conn = (HttpURLConnection)url.openConnection();conn.connect();Groups = conn.getHeaderField("Groups");
Now Groups variable is what I need.

Similar Messages

  • Powershell help - get a recursive list of user created inbox subfolders based on variable

    I have a requirement to identify all user mailboxes that have user created subfolders under the Inbox folder.  I can use the following powershell command to obtain the information I need, but only for one user at a time:
    Get-mailboxfolderstatistics username -FolderScope Inbox | select name, foldertype | Where-Object {$_.FolderType-eq "User Created"}
    I have a list of about 700 usernames which can be loaded into a variable.  I've tried experiementing with the ForEach-Object cmdlet but I can't seem to get it to work.  Is there a way to get my command above to loop through all usernames stored in
    a variable, and then export to CSV?

    For all users dynamically...
    get-mailbox | Get-mailboxfolderstatistics -FolderScope Inbox | Where-Object {$_.FolderType -eq "User Created"} | Select Identity, Name, FolderType | Export-CSV Mailbox-Folder.csv -NoTypeInformation
    From a variable...
    $mailboxes = get-mailbox . .. . . 
    $mailboxes | Get-mailboxfolderstatistics -FolderScope Inbox | Where-Object {$_.FolderType -eq "User Created"} | Select Identity, Name, FolderType | Export-CSV Mailbox-Folder.csv -NoTypeInformation
    Blog |
    Get Your Exchange Powershell Tip of the Day from here

  • Reagrding the choose from list using user tables

    Hi
       I need to link <b>the choose from List to my user defined table</b> and not to system tables. 
    for eg., i have created a  table namely opp. Now i want to link choose from list to this table.
    can anyone help me??
    its very urgent...
    thanks in advance
    Lee

    hi Adele 
      thanks for your concern.i have used this code
                Dim OCFLS As SAPbouiCOM.ChooseFromListCollection
                Dim OConds As SAPbouiCOM.Conditions
                Dim OCond As SAPbouiCOM.Condition
                OCFLS = OForm.ChooseFromLists
                Dim OCFL As SAPbouiCOM.ChooseFromList
                Dim OCPack As SAPbouiCOM.ChooseFromListCreationParams
                OCPack = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_ChooseFromListCreationParams)
                OCPack.MultiSelection = False
                OCPack.UniqueID = "CFL3"
                OCPack.ObjectType = "OPRQ"
                OCFL = OCFLS.Add(OCPack)
            Catch ex As Exception
                MsgBox(Err.Description())
            End Try
    <b>then i link the choose from list to the Button(choosefromlist) namely OLBut. the code is follws</b>
                            <b>ONewItem = OForm.Items.Item("67")
                            OLBut = ONewItem.Specific
                            OLBut.ChooseFromListUID = "CFL3"</b>
    but this is not working.i.e when i click the choose from list button nothing it is showing.what mistake i have done?please help me
    thanks in advance

  • Can you get a dir list using the SDK

    I've looke through the docs and can't see one ? I see apis for moving, creating files dir etc but not listing.
    I'm looking to build a dynamic webpage that queries a directory and presents a list of iles/urls for download

    Try: http://download-west.oracle.com/docs/cd/B25553_01/content.1012/b25584/toc.htm
    http://download-west.oracle.com/docs/cd/B25553_01/content.1012/b25584/oracle/ifs/fdk/Attributes.html lists the attributes that are supported by the various Item types.
    http://download-west.oracle.com/docs/cd/B25553_01/content.1012/b25584/oracle/ifs/fdk/FileManager.html describes the methods supported by the FileManager.
    For an overview see:
    http://www.oracle.com/technology/products/cs/developer/contentservicesdev/pdf/ContentServices-WebServices-TechnicalPaper_Final.pdf
    -sancho

  • Getting a list of users and permission from a folder

    I run this command to get a a list of users and permission from a folder
    $project_folder = "\\servername\foldername"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType, FileSystemRights > folder.csv.
    This only lists information for 1 folder.
    If i have multiple folders how should the code be modified?

    this is the code i am looking for 
     $project_folder
    = "\\servername\foldername\foldername1"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType,
    FileSystemRights > folder.csv.
    I  run this code and this gives me the information for only the folder 'foldername1'.
    Ex. i need a list of users who have permmission in \\servername\foldername\foldername2.
    i run the code and it gives me the permissions and list of users in foldername2.
    This is the issue
    IF there are multiple folders \\servername\foldername\foldername2, \\servername\foldername\foldername1,
    i need to run the code each time for 1 folder. 
    is there a command where i can combine the path of these 2 or more folders and export
    it to csv
    Ex.  $project_folder
    = "\\servername\foldername\foldername1",
    "\\servername\foldername\foldername2"
    get-acl $project_folder | %{ $_.Access  } | ft -property IdentityReference, AccessControlType,
    FileSystemRights > folder.csv.
    This will give me the list of users and the type of access they have in foldername1 and
    foldername2

  • Po List by user ID wise

    Can I get the PO list by User ID WISE

    go to Tcode  ME2N.
    click dynamic selection buttion.(shift F4)
    PO header and item fields will appear.
    dropdown PO document header ... double clickt' created by" field....new window will appear on selection screen
    enter User ID .. and execute.
    hope this will solve.. with standard Tcode.

  • How do we get the usernames list from the james server

    hi guys,
    i would like to get the total registered users in James Mail server.is there any way to get the total list of users ?. pls help me...if possible send me sample code.
    thanks & regards,
    siva

    telnet localhost 4555
    -> log in with the credentials you set in the config file
    -> list users
    or, if you have set up the users in a database, you can connect to the DB to manipulate them.
    see http://james.apache.org/FAQ.html

  • How to get list of Users[MailBoxes] in Exchange Server 2013 by using EWS Managed API

    Hi all,
    I need list of Users exists in my Exchange server 2013 , i.e Mail Box Users login name.
    I was  created Full Access permissions of all users to Admin user account,  to access each user Mailbox programatically 
    i need the list of Mailboxes in exchange server .
    MailBox  mailbox = new MailBox("user");
    Please share your ideas

    Hi,
    We can run the following command in Exchange Management Shell to get all user mailboxes name and export it to a .csv file:
    Get-Mailbox -ResultSize Unlimited | Select Name,Alias,RecipientTypeDetails | Export-Csv c:\Users.csv
    If you want to retrieve the list of users by using EWS Managed API, I suggest you can ask a question in Exchange Development forum for more suggestion:
    http://social.technet.microsoft.com/Forums/en-US/exchangesvrdevelopment/threads
    Regards,
    Winnie Liang
    TechNet Community Support

  • How to get list of users who all are having full access in sharepoint site using client object model c#

    Hi,
    I want to fetch the list of users who all are having full access to the sharepoint list using client object model with .Net
    Please let me know if any property for the user object or any other way to get it.
    Thanks in advance.

    Here you are complete code i created from some years it lists all groups and users, you can just add a check in the permissions loop to see if it is equal to Full Control.
    Private void GetData(object obj)
    MyArgs args = obj as MyArgs;
    try
    if (args == null)
    return; // called without parameters or invalid type
    using (ClientContext clientContext = new ClientContext(args.URL))
    // clientContext.AuthenticationMode = ClientAuthenticationMode.;
    NetworkCredential credentials = new NetworkCredential(args.UserName, args.Password, args.Domain);
    clientContext.Credentials = credentials;
    RoleAssignmentCollection roles = clientContext.Web.RoleAssignments;
    ListViewItem lvi;
    ListViewItem.ListViewSubItem lvsi;
    ListViewItem lvigroup;
    ListViewItem.ListViewSubItem lvsigroup;
    clientContext.Load(roles);
    clientContext.ExecuteQuery();
    foreach (RoleAssignment orole in roles)
    clientContext.Load(orole.Member);
    clientContext.ExecuteQuery();
    //name
    //MessageBox.Show(orole.Member.LoginName);
    lvi = new ListViewItem();
    lvi.Text = orole.Member.LoginName;
    lvsi = new ListViewItem.ListViewSubItem();
    lvsi.Text = orole.Member.PrincipalType.ToString();
    lvi.SubItems.Add(lvsi);
    //get the type group or user
    // MessageBox.Show(orole.Member.PrincipalType.ToString());
    if (orole.Member.PrincipalType.ToString() == "SharePointGroup")
    lvigroup = new ListViewItem();
    lvigroup.Text = orole.Member.LoginName;
    // args.GroupsList.Items.Add(lvigroup);
    DoUpdate1(lvigroup);
    Group group = clientContext.Web.SiteGroups.GetById(orole.Member.Id);
    UserCollection collUser = group.Users;
    clientContext.Load(collUser);
    clientContext.ExecuteQuery();
    foreach (User oUser in collUser)
    lvigroup = new ListViewItem();
    lvigroup.Text = "";
    lvsigroup = new ListViewItem.ListViewSubItem();
    lvsigroup.Text = oUser.LoginName;
    lvigroup.SubItems.Add(lvsigroup);
    //args.GroupsList.Items.Add(lvigroup);
    DoUpdate1(lvigroup);
    // MessageBox.Show(oUser.LoginName);
    RoleDefinitionBindingCollection roleDefsbindings = null;
    roleDefsbindings = orole.RoleDefinitionBindings;
    clientContext.Load(roleDefsbindings);
    clientContext.ExecuteQuery();
    //permission level
    lvsi = new ListViewItem.ListViewSubItem();
    string permissionsstr = string.Empty;
    for (int i = 0; i < roleDefsbindings.Count; i++)
    if (i == roleDefsbindings.Count - 1)
    permissionsstr = permissionsstr += roleDefsbindings[i].Name;
    else
    permissionsstr = permissionsstr += roleDefsbindings[i].Name + ", ";
    lvsi.Text = permissionsstr;
    lvi.SubItems.Add(lvsi);
    // args.PermissionsList.Items.Add(lvi);
    DoUpdate2(lvi);
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    finally
    DoUpdate3();
    Kind Regards, John Naguib Technical Consultant/Architect MCITP, MCPD, MCTS, MCT, TOGAF 9 Foundation

  • Get list of User Mailboxes in Exchange server 2013 by using EWS managed API

    Hi all,
    I need list of Users exists in my Exchange server 2013 , i.e Mail Box Users log in name.
    i know the command in Powershell  to get list, but i need this using code[ ews managed API].
    How can i achieve this ?
    Please share your ideas

    Hi Glen,
    i follow your suggested links i wrote below code ,
    here i am getting error  
    The term 'Get-Users' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
    SecureString password = new SecureString();
    string str_password = "EIS2014!@#";
    string username = "[email protected]";
    foreach (char x in str_password) { password.AppendChar(x); }
    PSCredential credential = new PSCredential(username, password);
    WSManConnectionInfo connectionInfo = new WSManConnectionInfo(new Uri("http://ExchangeServer.admin.com/powershell"), "http://schemas.microsoft.com/powershell/Microsoft.Exchange", credential);
    //connectionInfo.AuthenticationMechanism = AuthenticationMechanism.Basic;
    Runspace runspace = RunspaceFactory.CreateRunspace(connectionInfo);
    PowerShell powershell = PowerShell.Create();
    PSCommand command = new PSCommand();
    command.AddCommand("Get-Users");
    command.AddParameter("ResultSize", 50);
    powershell.Commands = command;
    runspace.Open();
    powershell.Runspace = runspace;
    var aa = powershell.Invoke();
    Please help me.

  • How to get list of users using  IN OIM

    Experts,
    Is it possible to get the list of users who have logged into OIM in past (for example last six months)? as not all people in my organization uses OIM.
    Please suggest if OIM(version 9.1.02) has any such functionality or if it is possible to get it from OIM database.
    Thanks,
    S M

    OIM will not store last logon date & time. So this is not possible. If you have access manager integrated environment, then OID will have last logon date & time. in such environment, from OID, you can get these details.

  • How to get list of users who reset password using FIM portal

    How to get list of users who reset password using FIM portal
    -Thanks Rakesh Sawant

    Hi Rakesh,
    I think you are looking for something like this:
    Using Powershell to list all users that had completed
    a password reset within the last 30 days
    If you found my post helpful, please give it a Helpful vote. If it answered your question, remember to mark it as an Answer.

  • To get list of users using universe designer client tools

    Hi Experts,
    Is there any way we can get the list of users using universe designer client tool.
    Thanks,
    Shiva Gunturu

    Hi Shiva,
    Refer to chapter 12 section "User events enabled for clients"
    http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_bip_admin_en.pdf
    In XI 3.1 client auditing is a bit limited, you may need to do some testing to determine if it is possible to audit what you are looking for.
    Hope it helps
    Thanks
    Toby
    http://help.sap.com/businessobject/product_guides/boexir31SP3/en/xi31_sp3_bip_admin_en.pdf

  • How to get administrations of distribution list using api?

    I want get all administrations of a distribution list using api, how to do that?
    anybody knows? Thank you very much!!

    there is a standard function in mdm wd component
    https://help.sap.com/saphelp_nwmdm71/helpdata/en/loio30bf76947bb64c48a2e835fda42c5183_30bf76947bb64c48a2e835fda42c5183/4…
    "Note The Compare to Original button on the Items Detail component opens a Compare component enabling a user to compare a checked out record with an original record (if the user has authorization for the checked out group).
    If the checked out record is a result of a merge action, then the Compare view displays all the original records prior to the merge. When a merge action is executed on a number of checked out records, the merged record is also checked out."

  • How to list of Users who are using Crystal XI application?

    Hi all,
    Thanks for your support provided so far.
    I need to get the list of users who are all using the Crystal XI application. I tried to get this info from the Business Objects Enterprise Applications in CMC but it was not there. Where can I find this information?
    kindly help me.
    Thanks,
    Bhuvan R

    There is not such a portlet available out of the box...
    Have you looked at the code share section?
    If you want to develop yourself, I don't think this is achievable using the IDK (remote interface)
    But It is definitely possible to create such a portlet using the server API (drawback: the portlet has to live where a portal component is installed - WS, automation or Portal)

Maybe you are looking for

  • How to Open File in Full-Screen Mode

    How do I set a Quicktime file to open in full-screen mode?   Windows XP  

  • Reconcillation of gr with challan

    hi everybody i am processing subcontracting process . in bom i have maintained scrap material. but after gr when i reconcile quantity of challan with gr decocument here scrap is not coming and it is showing o in scrap quantity.pleae suggest. regards

  • Authenticate Users

    I have a 2003 functional level forest with two domains.  As this is a higher ed school, one domain is faculty and staff, the other students.  I am attempting to configure our learning management system (in our production domain) to authenticate our s

  • Issue in inter company billing

    HI  when i am doing inter company billing , i am getting the issue like  XXXX sales organization item 0000 is not defined. i have setup all relavents setting which are related intercompany . Could you help out in this case. Thanks, Phani

  • What versions of JDE are supported?

    I have been trying to connect to a JDE OneWorld Xe installation using Oracle adapters. Working with the FAQ I found some of the required .jar files and was able to get a JDEAdapter listed in the adapter explorer. However when I try to connect I get a