Get list of Portal Users

Hello. I have some problem. I must to write query, which
show all portal users. Please, help me.
Sincerely yours, Akshabayev Aidar

look ODS schema's tables
ex)
SELECT A.ATTRVALUE "ID", B.ATTRVAL "SN" , L.ATTRVAL "MAIL"
FROM ODS.CT_UID A
LEFT OUTER JOIN ODS.DS_ATTRSTORE B ON B.ENTRYID = A.ENTRYID AND B.ATTRNAME = 'sn'     
LEFT OUTER JOIN ODS.DS_ATTRSTORE L ON L.ENTRYID = A.ENTRYID AND L.ATTRNAME = 'mail'
-- this 10g version

Similar Messages

  • I need a table/view so I can list current portal users

    Is there a table/view that I can use within portal that holds the names of all the portal users ?

    That link looks interesting - couldn't get the code in Appendix A to work for some reason. I assume it should be run in the ORASSO schema?
    Anyway, I need to get a list of Portal users and their group memberships from PL/SQL.
    What is the best way to approach this?
    Cheers,
    John

  • Getting list of all users present in SIM

    Hi,
    I would like to update all the users (attributes of users) in SIM .
    Right now I am thinking to get list of all users present in SIM and get the view of each user and then update the particular attribute and chekin the view. and imp point to note here is I am having around 100,000 users present in SIM.
    I am thinking there could be a better solution than this...
    But I do not know which way can be used to accomplish the task.
    Can any one reply immediately with any thought on this.
    Thanks in advance.

    Run a bulk update actions you can easily get a list of all accountids by running select name from userobj;
    and in your field or in your input area specify the values u wanna update

  • How to get list of active users with the details like samaccountname, name, department, job tittle, email in active directoy?

    how to get list of active users with the details like samaccountname, name, department, job tittle, email in active directoy?

    You can use third party software True Last Logon 2.9.You can export the file in excel for report creation.You can use the trial version this will achieve what you are looking for.
    True Last Logon displays the following Active Directory information:
    --Users real name and logon name
    --Detailed account status
    --Last Logon Date & Time
    --Last Logon Timestamp (Replicated value)
    --Account Expiry Date & Time
    --Enabled or Disabled Account
    --Locked Accounts
    --Password Expires
    --Password Last Set Date & Time
    --Logon Count
    --Bad Password Count
    --Expiry Date
    --You can also query for any other attribute (Example: Description, telephone Number, custom attibutes etc)
    Refer the below link for trial version:
    http://www.dovestones.com/products/True_Last_Logon.asp
    Best Regards,
    Sandesh Dubey.
    MCSE|MCSA:Messaging|MCTS|MCITP:Enterprise Adminitrator |
    My Blog
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • How to optimize code for getting list of portal GP erroneous processes

    Hello,
    In our Web Dynpro application for Java we got the list of GP processes with status Erroneous which match the following criteria (initiator, processName, blockName, actionName, startDate, endDate, instanceName, actionProcessor) by loop of all portal users. The problem is that it takes too much time for execution. In example with 200 users it takes about 5 min. Any idea how to optimize execution?
    <br>
    <br>
    <br>
    <br>
    public java.util.List getListOfUser( )  {<br>
        //@@begin getListOfUser()<br>
         List<IUser> usersList = null;<br>
            try {<br>
              ISearchResult uniqueIDs =  UMFactory.getUserFactory().getUniqueIDs();     <br>
              if (uniqueIDs.getState() == ISearchResult.SEARCH_RESULT_OK)     <br>
              {     <br>
         usersList = new ArrayList<IUser>();     <br>
                 for (Iterator<?> it = uniqueIDs; it.hasNext();) {     <br>
                     usersList.add(UMFactory.getUserFactory().getUser((String)it.next()));     <br>
         }     <br>
               }       <br> 
            } catch (UMException ex) {     <br>
            msgMngr.reportException("Unable get list of users!");     <br>
         }          <br>
         return usersList;     <br>
        //@@end     <br>
      }     <br>
    <br>
    <br>
    <br>
    public void getErrorProcessAllUser( )  {     <br>
    IUser currentUser = null;     <br>
              try {        <br>
                    if (wdContext.nodeUsers().currentUsersElement().getLogonId() == null){     <br>
                         List<IUser> userList = getListOfUser( );     <br>
    <font color="red">//{this loop is extremely slow</font>     <br>
                             for(int n = 0; n < userList.size();n++){       <br>
                                     String logonID =  userList.get(n).getUniqueName();     <br>
                                    currentUser = UMFactory.getUserFactory().getUserByUniqueName(logonID);     <br>
                                  viewProcessDetails(currentUser);     <br>
                         }     <br>
    //}     <br>
                     }else{     <br>
                         currentUser = <br>     UMFactory.getUserFactory().getUserByUniqueName(wdContext.nodeUsers().currentUsersElement().getLogonId());
                         viewProcessDetails(currentUser);<br>
                     }<br>
                   } catch (UMException e) {<br>
                    msgMngr.reportException("No user with this logonId!");<br>
                   }<br>
    }<br>
    <br>
    <br>
      public void viewProcessDetails( com.sap.security.api.IUser currentUser )  {<br>
        //@@begin viewProcessDetails()<br>
             List<IProcessInfoElement> bindableResult = new ArrayList<IProcessInfoElement>();<br>
                 try {   <br>
                    IGPRuntimeManager rtManager = GPProcessFactory.getRuntimeManager();<br>                           
                    IGPWorkItem[] workItems = rtManager.getWorkItems(GPWorkItemStatus.WORKITEM_STATUS_COMPLETED_BY_SYSTEM,<br> GPContextFactory.getContextManager().createUserContext(currentUser));<br>
                     for(int i = 0; i < workItems.length; i++){<br>
                               IGPProcessInstanceInfo processInfo =  rtManager.getProcessInstanceInformation(workItems<i>.getProcessID(), currentUser);<br>
                               if(GPBlockInstanceStatus.getStatusForCode(processInfo.getStatus()) == GPBlockInstanceStatus.BLOCK_INSTANCE_STATUS_ERROR){ <br>
                                    IGPProcessInstance instance = rtManager.getProcessInstance(processInfo, GPContextFactory.getContextManager().createUserContext(currentUser));  <br>                           
                                    IGPActivityInstance[] blocksList = instance.getChildrenInformation();    <br>
                            for(int j = 0; j < blocksList.length; j++){    <br>
                                     IGPActivityInstance[] actionsList = ((IGPBlockInstance)blocksList[j]).getChildrenInformation();
                                for (int k = 0; k < actionsList.length; k++){<br>               
          DO SOMETHING

    got the answers ..
    we have use IndexedRecord instead of MappedRecord
                   IndexedRecord input = rf.createIndexedRecord("input");
                   boolean flag = input.add("/FolderpathValue");
                   flag = input.add("CampusCodeValue");
    <b>Thanks</b>,
    Saravanan

  • List of Portal Users/Groups

    Is there a way to get the list of users/groups in the Portal to allow us to add security to our custom built portlet? Once the security has been added, we can use the APIs to check if someone is privileged, but how do we get a list of the users/groups to select from in the first place.
    Regards
    Jenny

    Just check if<b> IRole and IUser</b> Interfaces have the necessary methods to do so.....

  • List of Portal Users/Group

    Is there a way to get the list of users/groups in the Portal to allow us to add security to our custom built portlet? Once the security has been added, we can use the APIs to check if someone is privileged, but how to we get a list of the users/groups to select from in the first place.
    Regards
    Jenny

    Search for LDAPSEARCH in metalink. I've seen a stored procedure that one may use to list either users or groups. You have to use both if you want to dump list of groups with users. Optionally there's an LDAPSEARCH command that may be used via command line. Refer to Metalink Note 251776.1. This note will give you syntax on the command line LDAPSEARCH. In order to do this though, you must know the base domain parameters for your portal groups...which you can obtain from the Administrator -> Global Settings -> SSO, and you also must know the password to your orcladmin superuser account that's used to login to the LDAP.
    Hope this helps...

  • List of Portal users with the assigned Roles.....

    Hello All,
    I am working on EP6 SP9 and want to know from where can I get a list of all Portal users along with the assigned roles for each of them.
    One way I found is by searching for all users in User Administration role and along with the searched users, there is also an icon for Assigned roles.
    Apart from the above mentioned way, is there any other way by which I can get a direct list of the same. Is there a Java sample code for this.....?
    Please help.
    Awaiting Reply.
    Thanks and Warm Regards,
    Ritu R Hunjan

    Hi Ritu,
    Yes it is possible to get the roles of the users. You can try the following java code.
    package com.hcl.user;
    import java.util.Iterator;
    import java.util.Vector;
    import com.sap.security.api.IRole;
    import com.sap.security.api.IRoleFactory;
    import com.sap.security.api.IRoleSearchFilter;
    import com.sap.security.api.ISearchResult;
    import com.sap.security.api.IUser;
    import com.sap.security.api.IUserAccount;
    import com.sap.security.api.IUserFactory;
    import com.sap.security.api.UMFactory;
    import com.sapportals.portal.prt.component.AbstractPortalComponent;
    import com.sapportals.portal.prt.component.IPortalComponentRequest;
    import com.sapportals.portal.prt.component.IPortalComponentResponse;
    public class role_member extends AbstractPortalComponent {
    public void doContent(
    IPortalComponentRequest request,
    IPortalComponentResponse response) {
    try {
    IUserFactory userfactory = UMFactory.getUserFactory();
    IRoleFactory rolefactory = UMFactory.getRoleFactory();
    IRoleSearchFilter rolefltr = rolefactory.getRoleSearchFilter();
    rolefltr.setMaxSearchResultSize(2000);
    ISearchResult result = rolefactory.searchRoles(rolefltr);
    while (result.hasNext()) {
    response.write("<table border=0>n");
    String uniqueid = (String) result.next();
    IRole role = rolefactory.getRole(uniqueid);
    response.write("<tr><td bgcolor=Red>"+ role.getDisplayName()+ "</tr></td>n");
    Iterator users = role.getUserMembers(true);
    while (users.hasNext()) {
    String unique_user = (String) users.next();
    IUser user = userfactory.getUser(unique_user);
    IUserAccount account[] = user.getUserAccounts();
    response.write(
    "<tr><td>" + account[0].getLogonUid() + "</tr></td>n");
    response.write("</table>n");
    response.write("</br>n");
    } catch (Exception e) {
    This code gives you the list of all the users of your portal along with the roles assigned to them.
    Apart from this if you want you want to know all the roles assigned to the user on portal itself then the way you mentioned is the correct method.
    Regards
    Pravesh
    PS: Please consider awarding points.

  • Getting list of all users and their group memberships from Active Directory

    Hi,
    I want to retrieve a list of all the users and their group memberships through JNDI from Active Directory. I am using the following code to achieve this:
    ==================
    import javax.naming.*;
    import java.util.Hashtable;
    import javax.naming.directory.*;
    public class GetUsersGroups{
         public static void main(String[] args){
              String[] attributeNames = {"memberOf"};
              //create an initial directory context
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
              env.put(Context.PROVIDER_URL, "ldap://172.19.1.32:389/");
              env.put(Context.SECURITY_AUTHENTICATION, "simple");
              env.put(Context.SECURITY_PRINCIPAL, "[email protected]");
              env.put(Context.SECURITY_CREDENTIALS, "p8admin");
              try {
                   // Create the initial directory context
                   DirContext ctx = new InitialDirContext(env);     
                   //get all the users list and their group memberships
                   NamingEnumeration contentsEnum = ctx.list("CN=Users,DC=filenetp8,DC=com");
                   while (contentsEnum.hasMore()){
                        NameClassPair ncp = (NameClassPair) contentsEnum.next();
                        String userName = ncp.getName();
                        System.out.println("User: "+userName);
                        try{
                             System.out.println("am here....1");
                             Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should be returned
                             System.out.println("am here....2");
                             Attribute groupsAttribute = attrs.get(attributeNames[0]); // memberOf
                             System.out.println("-----"+groupsAttribute.size());
                             if (groupsAttribute != null){
                                  // memberOf is a multi valued attribute
                                  for (int i=0; i<groupsAttribute.size(); i++){
                                  // print out each group that user belongs to
                                  System.out.println("MemberOf: "+groupsAttribute.get(i));
                        }catch(NamingException ne){
                        // ignore for now
                   System.err.println("Problem encountered....0000:" + ne);
                   //get all the groups list
              } catch (NamingException e) {
              System.err.println("Problem encountered 1111:" + e);
    =================
    The following exception gets thrown at every user entry:
    User: CN=Administrator
    am here....1
    Problem encountered....0000:javax.naming.NamingException: [LDAP: error code 1 -
    000020D6: SvcErr: DSID-03100690, problem 5012 (DIR_ERROR), data 0
    ]; remaining name 'CN=Administrator'
    I think it gets thrown at this line in the code:
    Attributes attrs = ctx.getAttributes(userName, attributeNames);
    Any idea how to overcome this and where am I wrong?
    Thanks in advance,
    Regards.

    In this sentence:
    Attributes attrs = ctx.getAttributes(userName, attributeNames); // only asked for one attribute so only one should
    It seems Ok when I add "CN=Users,DC=filenetp8,DC=com" after userName, just as
    userName + ",CN=Users,DC=filenetp8,DC=com"
    But I still have some problem with it.
    Hope it will be useful for you.

  • Get current logged portal  user information

    Hi,
    I need to get information about current user logged to the portal from a J2EE application. I developed an Enterprise application project with a java servlet and I integrated it into the portal as an URL iView.
    This in the code of servlet:
    import com.sap.security.api.*;
    IUserFactory userFactory= UMFactory.getUserFactory();
         IUser user= UMFactory.getAuthenticator().getLoggedInUser();
         out.println(user.getUniqueID().toString());
         out.println(user.getDisplayName().toString());
         out.println(user.getName().toString());
         out.println(user.getUniqueName().toString());
    When I run my application I have this output:
    USER.PRIVATE_DATASOURCE.un:Guest Guest, Guest Guest
    But I access with another user, it's not Guest.
    How can I solve this problem???THANKS

    Hi,
    Please try checking with following code
    ISearchResult rst = UMFactory.getUserFactory().getUniqueIDs();
                      IUserFactory usf = UMFactory.getUserFactory();
                      IUser iuser = null;
                      IUserListElement userElement = null;
                      int i = 0;
                      while (rst.hasNext()) {
                      iuser =  UMFactory.getUserFactory().getUser(rst.next().toString());
                      String email = iuser.getEmail();
                       String fname = iuser.getFirstName();
                        String lname = iuser.getLastName();
    let me know if there are any issues.
    regards
    Anil

  • How to get list of tables/users that are under audit

    Hello,
    For testing perpose I have set audit on many tables and users.
    Is there any view or table from which I get list of objects that are kept under audit?
    Noaudit All command for disabling all of them does not work properly. I have to exactly revert audit to stop.
    Means if I write audit insert on table1;
    Now for disabling this, if I write noaudit all then it dont works but If I write noaudit insert on table1 then it works.
    So I need a list on which objects I start audit.
    Or is there any other way to stop them?
    Regards,
    Bhavin M Mistry...

    Try
    DBA_STMT_AUDIT_OPTS
    DBA_PRIV_AUDIT_OPTS
    DBA_OBJ_AUDIT_OPTS
    SYS@etest> audit role;
    Audit succeeded.
    SYS@etest> SELECT * FROM DBA_STMT_AUDIT_OPTS;
    USER_NAME                      PROXY_NAME
    AUDIT_OPTION                             SUCCESS    FAILURE
    ROLE                                     BY ACCESS  BY ACCESS

  • Can I get the current portal user in the VC?

    Hello all,
       I create a iView to change the SQL server data record by VC.Now I want to write the  user information of the portal into the SQL server database when someone use the iView to change the SQL server data record.How can I do?
    Thanks!

    Hi Lin,
    This is a very good question. However, in VC we can use function modules or any query to connect to various back-ends. There is no funda of using global variables in VC, by which you can store the data of logged in users. If you have any function module or query to fetch the data of logged in user, you can use that in VC, but i doubt, it is not feasible.

  • Displaying a list of Portal users connected and their connection time

    We are using Portal version 10.1.2.0.2 and I cannot find in App Server Control (EM Website) how I can track the number of users connected to my portal site as well as their connection time. Are there reports available that will provide the requested information?
    Can anyone tell me what other reports are available in this version of Portal that would be useful to an administrator of a portal site?
    Thank you,
    Denise

    select attrvalue as id from ods.CT_UID
    give that a burl

  • List the total users connected at point of time (portal admin)

    Hi Dev2Dev team
    Is there any way to get List of total users as well as specific users connected to portal at point of time
    is there any way to get the list from portal admin
    or from weblogic server
    is there any tool available for this
    can anyone provide me with the sample or code or tool
    Thanks
    Surya

    Hi All
    Is that the data's of login and logout details are stored in Pointbase db by default.
    I am using oracle where i have all my default portal tables.
    any info appreciated
    Thanks
    Surya

  • Get current portal user password?

    Is it possible to get the current portal user's password? If so, I need the pl/sql api to accomplish this.

    Hi there,
    I was looking for the same thing but as I understood it is saved in a HASH format and their is NO way to decrypt it.
    The thing I do now is storing the password in a selfmade table besides the SSO tables for administrative use.
    Greets
    cumQuat
    Dave Ruzius

Maybe you are looking for

  • Iphone 4 doesn't sync with itunes

    Hello, after of the itunes last update 11.1.4.62 my iphone can't sync with itunes, my pc doesn't recognize, not seen in the device manager so I can't update drivers.

  • What is the best iPad 2 file management program?

    My movies are taking over my iPad 2 hard drive.  I purchased movies on my iPad 2 and would like to move them to my macbook for storage.

  • Adding a new field in purchase order tab in Sales Order transcation

    Hi Gurus    I need to add a new field in header portion 'Purchase order data' with a new field below the telephone no for the transcation VA01.What should I do here?is there any exit or Badi avaiable for this? Thanks Ganesh

  • Font Size in Contacts

    Can you increase the font size on the numbers in the contact list?

  • Open Hub destinations

    I am using open hub destinations to transfer the cube data into database tables in BI.During activation of open hub the database tables with names /BIC/OH* are created. I am facing problem with the reference fields associated with this table.It is ta