Retrieving User details

Hi,
I am using the wwsec_api.person_info function passing in a user id to retrieve a portal users details. I am able to retrieve details such as first name, last name , email address. I need to get the 'Department' that the user is in but can't seem to retrieve this. An ideas on how to do this?
Also within portal, if i edit a users details and put entries into telephone, department, first name etc and then look in the view wwsec_person, none of these details are recorded against the specific user. Is this normal?
Any help would be appriecated.

These are all stored within the LDAP. You can use dbms_ldap calls to retrieve them, or select from the ODS.DS_ATTRSTORE table directly where attname is the attribute you are looking for.

Similar Messages

  • Retrieving user detail, group name for all users

    Hi,
    How can I retrieve User name, email, authentication, user group name
    for all users using SDK.
    It is possible to create this report in webi or CR?
    Thank you for reply,
    Gregor

    Use the following code to retrieve this information:
    IInfoObjects users = oInfoStore.query("select * from ci_systemobjects where si_kind='user'");
    for (int i=0; i<users.size(); i++)
             IUser user = (IUser)users.get(i);
             // user.getTitle(); for user name
             // user.getFullName(); for user's full name
             //  user.getEmailAddress(); for user's email address
             //  for authentication type:
             IUserAliases alises = user.getAliases();
             for(int j=0; j<aliases.size();j++)
                       IUserAlias alias = alises.get(j);
                       // alias.getAuthentication() for authentication associated with this alias, since same user can have more than 1 authentication. e.g. Enterprise and Ldap.
             // for user group memberships:
             java.util.Set groups = user.getGroups();        
             // the groups Set object will contain SI_ID of all the user groups that this uses is member of. You need to query by the SI_ID of the usergroup to get the group names.
    //  e.g.
    //    oInfoStore.query("select si_id, si_name from ci_systemobjects where si_kind='usergroup' and si_id in (a,b,c....)");
    where a,b,c are the SI_IDs of the usergroups.
    To create a report based on the above fetched data, there are several methods such as:
    you can use Java resultset where in you create the report structure in designer and push the data at runtime using java result set objects. Another way is to push this info in Excel or Access and design your report based on that excel\access.

  • Pl sql procedure to retrieve user details based on the input

    hi,
    I am looking for an example which will retrieve the data based on what he requests. I mean: the user types in an request_name, the procedure will check if the request_name already exists. If yes, then it will retrieve the request_name and other columns from the table R. Else it will create a new request by adding request_name and other details to the table.
    hope this is clear some1 could help me
    thanks

    If defaults are set for the request table fields and you can get by inserting only the request_name field, perhaps something like the below would work?
    T_REQUEST is the table, REQUEST_NAME is the field you mentioned. If the function finds the record, it returns it as a record. If it doesn't, it inserts a blank record with REQUEST_NAME populated:
    CREATE OR REPLACE FUNCTION REQUEST_LOOKUP
    ( V_REQUEST_NAME IN T_REQUEST.REQUEST_NAME%TYPE )
    RETURN T_REQUEST%ROWTYPE
    AS
        R_REQUEST T_REQUEST%ROWTYPE;
        CURSOR C_REQUEST IS
            SELECT *
            FROM T_REQUEST
         WHERE REQUEST_NAME = V_REQUEST_NAME;
    BEGIN
        OPEN C_REQUEST;
            IF C_REQUEST%NOTFOUND
            THEN
                INSERT INTO T_REQUEST (REQUEST_NAME)
                VALUES (V_REQUEST_NAME);
         ELSE
                FETCH C_REQUEST INTO R_REQUEST;
                RETURN R_REQUEST;
         END IF;
        CLOSE C_REQUEST;
    END REQUEST_LOOKUP;

  • Retrieving User Details from OID: Portal 10.1.2

    I am trying to retrieve the user object from the OID when the person logs in to the portal. I would need to retrive the group name and some attributes from the OID for the person logged in.
    Any ideas where I can get a snippet of code which does this? I am using Portal Version 10.1.2.

    Hi Soumak
    Use
    s_email wwsec_oid.VC_ARR := wwsec_oid.get_user_attr_vals(p_username => p_user,p_attr =>'mail' ,p_base =>'cn=users,dc=my_company,dc=com');
    s_nom wwsec_oid.VC_ARR := wwsec_oid.get_user_attr_vals(p_username => p_user,p_attr =>'sn' ,p_base =>'cn=users,dc=my_company,dc=com');
    s_prenom wwsec_oid.VC_ARR := wwsec_oid.get_user_attr_vals(p_username => p_user,p_attr =>'givenname',p_base =>'cn=users,dc=my_company,dc=com');
    or the dbms_ldap package :
    ldap_host := 'your_host';
    ldap_port := '4032';
    ldap_user := 'cn=orcladmin';
    ldap_passwd := 'orcladmin_pwd';
    ldap_base := 'cn=users, dc=your_company,dc=com';
    -- Choosing exceptions to be raised by DBMS_LDAP library.
    DBMS_LDAP.use_exception := TRUE;
    my_session := DBMS_LDAP.init (ldap_host, ldap_port);
    -- bind to the directory
    retval := DBMS_LDAP.simple_bind_s (my_session, ldap_user, ldap_passwd);
    -- issue the search
    my_attrs (1) := '*'; -- retrieve all attributes
    my_selection := 'cn=' || p_cn;
    retval :=
    DBMS_LDAP.search_s (my_session,
    ldap_base,
    DBMS_LDAP.scope_subtree,
    --'objectclass=*',
    my_selection,
    my_attrs,
    0,
    my_message
    -- get the entry
    my_entry := DBMS_LDAP.first_entry (my_session, my_message);
    entry_index := 1;
    p_mail := '';
    p_tel := '';
    p_sn := '';
    p_givenname := '';
    my_dn := DBMS_LDAP.get_dn (my_session, my_entry);
    my_attr_name :=
    DBMS_LDAP.first_attribute (my_session, my_entry, my_ber_elmt);
    attr_index := 1;
    WHILE my_attr_name IS NOT NULL
    LOOP
    my_vals := DBMS_LDAP.get_values (my_session, my_entry, my_attr_name);
    IF my_vals.COUNT > 0
    THEN
    FOR i IN my_vals.FIRST .. my_vals.LAST
    LOOP
    IF my_attr_name = 'mail'
    THEN
    p_mail := SUBSTR (my_vals (i), 1, 200);
    END IF;
    IF my_attr_name = 'telephonenumber'
    THEN
    p_tel := SUBSTR (my_vals (i), 1, 200);
    END IF;
    IF my_attr_name = 'sn'
    THEN
    p_sn := SUBSTR (my_vals (i), 1, 200);
    END IF;
    IF my_attr_name = 'givenname'
    THEN
    p_givenname := SUBSTR (my_vals (i), 1, 200);
    END IF;
    END LOOP;
    END IF;
    my_attr_name :=
    DBMS_LDAP.next_attribute (my_session, my_entry, my_ber_elmt);
    END LOOP;
    -- Free ber_element
    DBMS_LDAP.ber_free (my_ber_elmt, 0);
    -- free LDAP Message
    retval := DBMS_LDAP.msgfree (my_message);
    -- unbind from the directory
    retval := DBMS_LDAP.unbind_s (my_session);

  • Groovy expression for fetching current user details

    I have created a view object that retrieves user details from the database. Also for dynamically getting the details of the current user logged in i have defined a bind variable currentUser and the default expression is adf.context.securityContext.userName.When i give the fixed literal value as user name the details are fetched. However details are not fetched when i use the groovy expression. Can i get some help on this please.
    Regards

    details are not fetched when i use the groovy expressionby using groovy you cant the details
    i cant get you, is this you question?
    some hints, here
    groovy expression as default value in a Entity's Field Problem

  • OBIEE 11g Active Directory Presentation Service Error retrieving user

    Hi Team,
    It was a great help from all of you on our OBIEE learnings.
    I recently configured Microsoft AD on Weblogic rather than RPD. But felt like I am in a desert of helplessness due to the complicated and lengthy documents and settings :(
    Still when I configured everything and logged in to presentation services using AD Credentials, observed following error!
    Error retrieving user/group data from Oracle BI Server's User Population API.
    Error Details
    Error Codes: GDU6UYHS:OPR4ONWY:U9IM8TAC:OI2DL65P:SDKE4UTF
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 13049] User 'gp06108' with 'oracle.bi.publisher.scheduleReport;AtAGlance;oracle.bi.publisher.accessReportOutput;_all_;oracle.bi.publisher.accessExcelReportAnalyzer;_all_;oracle.epm.financialreporting.accessReporting;Explore;oracle.bi.publisher.accessOnlineReportAnalyzer;EPM_Essbase_Filter;oracle.bi.publisher.runReportOnline;oracle.as.scheduler.security.MetadataPermission' permission can not query user population.Please have your System Administrator look at the log for more details on this error. (HY000)
    Please have your System Administrator look at the log for more details on this error.
    Expression: privileges['Admin: Catalog']['Change Permissions']
    Total blockout! Anyone faced this issue earlier

    You need a user to be present in your Active Directory Base DN that will be used as the BISystemUser. You will either have to create this user in AD or use an existing AD user and then specify its credentials in Enterprise Manager (expand Weblogic Domain > bifoundation_domain (right click) > Security > Credentials). You will need to set system.user credential under oracle.bi.system map. Make sure your AD user's password never expires or you will run into problems in a few weeks time!
    Paul

  • Script to get the user details by running a view from powershell

    Hi,
        I have a use-case of getting the list of users, who got modified in last one week or so. There was no direct way of getting the results as office-365 doesn't have the option. As i posted in a forum they suggested to use view based for retrieving
    the user details. I was able to get some user details through UI. When i asked for the option of getting it from powershell they suggested to post in this forum. Link on the question posted in forum is
    community.office365.com/en-us/forums/148/p/212305/646170.aspx#646170 your help is appreciated. Thanks in Advance

    Hi Sam,
    My list of servers are exported from CMDB data base and filter criteria i have used is role,status and first few characters of the server name.
    $CIlist = Import-Csv C:\Scripts\DiskSpace\Servers_CI.csv
    $diskspace = @()
    $CIlist | where {($_.Name -like '*XXXXXXXX*') -and ($_.Role -like '*XXXXXXXXXX*') -and ($_.Status -like '*XXXXXXXXXXXXXX*') } |
    select Name | FT
    # This part gives the list of servers.
    # below script gives the hard disk details of servers from a list
    $comp= Get-Content "C:\Scripts\DiskSpace\systems.txt"
    $diskvalue = @()
    foreach($pc in $comp)
    if (test-connection -CN  $pc -Count 1 -erroraction silentlycontinue)
        $diskvalue += Get-WmiObject -Class Win32_logicaldisk -ComputerName $pc -Filter DriveType=3 | 
        Select SystemName , DeviceID , @{Name=”size(GB)”;Expression={“{0:N1}” -f($_.size/1gb)}}, @{Name=”freespace(GB)”;Expression={“{0:N1}” -f($_.freespace/1gb)}}
        $diskvalue | Export-Csv C:\Scripts\DiskSpace\DiskReport.csv -NoTypeInformation
    else
    "$pc `t offline" | Out-file C:\Scripts\DiskSpace\offlinesystems.csv -encoding ASCII -append
    Is there any option to pass the result of first part to second part without exporting to a csv ot txt. or club this both together ??
    ToJo

  • How to update the loggedin user details using iuser

    Hi,
    our requirement is to edit and save the logged in user details retrieved from iusercontext.
    Please anyone help me out.
    please provide any sample code snippet regarding the same.
    Thank you,
    Hareesh
    Edited by: hareeshvenkat on Aug 30, 2011 12:42 PM
    Edited by: hareeshvenkat on Aug 30, 2011 2:03 PM

    Hello,
    You can change details of the user via IUserMaint interface.
    for example this is how you change the language of the user :
    IUserMaint Muser = uf.getMutableUser(userUniqueid);
    boolean res = Muser.setLocale(new Locale("en"));
    Muser.commit();
    You can find details about IUserMaint  in [http://help.sap.com/javadocs/NW04S/SPS09/se/com/sap/security/api/IUserMaint.html]
    Constantine

  • Storing Current Logged on User Details in Web Dynpro Java

    Hi Experts,
    My GP Process containd 2 steps:
       - Create Activity
       - Evaluate and Approve
    The user creates the Activity and the manager approves it.
    I have to make sure the User Details are avaialble for the Manager to see.
    How do i store the user details logged on.
    I need the "Name", "Date" and "Time" of the user when he creates the Activity.
    Can somebody guide me how to do it using Web Dynpro java.????
    Thanks a lot.
    Cheers
    Gaurav Raghav

    Hi Gaurav,
    Make use of background callable object which retrieves the logged in user details. If you are using WD and you need the logged in user infomation use the IWDClient . Code for getting this is there in sap help.
    Thanks,Uma.A

  • Getting User Details using objectid

    Hi,
    First i am querying the projects using ALUI IDK
    ===========
    IProjectManager projectManager = GetProjectManager(Request, Response);
    IProjectFilter projectFilter = projectManager.CreateProjectFilter();
    projectFilter.NameSearchText = searchText;
    Plumtree.Remote.PRC.Collaboration.Project.IProject[] projects = projectManager.QueryProjects(projectFilter);
    =================
    then i am retreiving User IDsadded as Project Leader
    ========================
    IRole role = null;
    RoleTypes roleType = RoleTypes.Leader;
    role = project.GetRole(roleType);
    int[] GroupID = role.GetMemberIDs(MemberQueryTypes.AllGroups);
    Display Group ID
    =========================
    Now the issue is i am not able to figure out how to get the users detail ie authusername, login name etc present in the groups that are retrieved.
    Regards,
    Ankit
    Edited by: electrazy on Jul 18, 2011 11:39 AM
    Edited by: electrazy on Jul 20, 2011 2:22 AM

    Hello electrazy,
    This is not possible from within the IDK. The best you can get are the Extended Data properties that are associated with the user object in the Global Property Map. If you want to get user information like the authentication name and the login name, you'll have to use the Portal Server API or directly query the database.
    -Mike Headley, WCI Developer Support

  • VBScript does not retrieve Member details if a Distribution/Security Group have only one Member

    Hi,
    VBScript does not retrieve Member details if a Distribution/Security Group have only one Member. I have tried several Scripts even changed the coding in it, also tried few External Script by created by other Scriptor's. Any suggestion on why this is happening. 

    Perfect... Thank you. I reworked on the Script and it is showing up. One more info required. I know my script is having another bug. Can you help me getting the member list of a User Group. When i pull it retrieves all the Group info for a user
    but no "Domain Users" Group.
    Sorry for the lame humor but it was getting late.
    As for you new request.  I do not understand what you are asking. Can you post your script and any error messages you are getting.
    ¯\_(ツ)_/¯

  • Update Customer User Details Form

    I'm pretty new to BC so hope someone can help me out with this. 
    I'm wanting to create a Secure Login page that allows my customers to login and update their Account details that they have provided with a (Custom Registration form), due to some customer fields
    My problem is that the Secure Zone is setup fine, however under Site Modules --> SecureZones --> Update User Details form does not have the fields which I need it to update from the Customer Registration Form. 
    What I've done is below:
    1. Setup a secure login page
    2. Upon login it is redirected to the Update Details page
    3. Within the Update Details page, I have inserted the module "Update User Details form"
    However I'm not sure how to customize the form in order for it to update/edit information retrieved from other forms.
    Hope someone can help.  Thanks!

    Hey there,
    You can, what your probably missing is selecting the dropdown where you choose to include the CRM data.

  • Portal user details

    HI
    I need to develop a web dynpro application which gives the details of the portal user details who logs into portal
    Can anyone provide me the code how to fetch the details of the users who logs into portal
    thanks in advance

    Hi,
    Make sure that your WebDynpro Applications Authentication property is set to True.
    To get Portal User Details you can use the following UME Api's
    try
    IWDClientUser user = WDClientUser.getLoggedInClientUser();
    IUser loggedInUser = user.getSAPUser();
    catch(UMException ume)
    //do something
    this Iuser objects holds all the Properties of Portal User Except its Password.
    and You can retrieve it like this
    loggedInUser.getFullName();
    if you know the Logon id of Portal User you can Also get the IUser object like this:--
    IUser user = UMFactory.getUserByLogonId("Administrator");
    To use UME APIS in Webdynpro you have to refer com.sap.security.api.jar in the Build path of your WebDynpro Application.
    If You Are Using NWDI then you have to use the com.sap.security.api.sda lib Dc available in NWDI for Compilation in WD DC
    Hope this Help.
    Regards,
    Siddharth

  • Error retrieving user by identity

    Hi guys,
    I have some weird issue.
    I started to have issues with some user which is supposed to connect to Planning 9.3.1. The user is not provisioned directly; it is a member of 2 groups which are provisioned.
    There are other users in those 2 groups and they have no similar problems. It started when I was able to connect to planning, but wasn’t able to see HBRs. I tried deprovisioning, deactivating, etc., it didn’t help. Then I deleted the user and created it again. From that point when I try to connect to HyperionPlanning I receive the following error message:
         Failed to sync with user provisioning. Check Planning log for details
    I started Planning in console mode and at the time of login I receive the following message:
    Error retrieving user by identity
    Embedded HBR initialized.
    com.hyperion.planning.DuplicateUserException: Another user with the name ANT2122
    already exists.
    It looks like traces of the deleted user stuck in the repository. Do you know how can I fix it/clear it up?
    Thanks a lot,
    Dmitry

    Ok, i cleared the planning repository from that user, more specifically the following tables:
    HSP_GROUP
    HSP_USERSINGROUP
    HSP_USERS
    HSP_OBJECT
    HSP_USER_PREFS
    HSP_MRU_MEMBERS
    HSP_ACCESS_CONTROL
    restarted the services and it came back to work.

  • How to find out the User Details for the particular transaction

    Hi,
    Actually AJAB -Asset Year closing was done by One User.How and Where to find out the User details who executed the Transaction.Kindly tell me the T-code for this.
    Thanks
    Sap Guru

    Hi:
    Please contact you basis administrator.Give him the T.code and date when Year closing was done. He may resolve your problem.
    Please let me know if you need more information,
    Assign points if useful.
    Regards
    MSReddy

Maybe you are looking for

  • How can I unlock my iPhone to use it in the UK?

    I came to the UK for one semester study-abroad program, and when I first got here, I could unlock my Galaxy 3 just by suspending the device, I could use that device fine until the phone got completely broken. Then, I received a new iPhone that was bo

  • JTree custom components ... ?

    Hello I did some simple work with JTrees. But now I want to build a JTree where all childs of a given node are displayed horizontally. It should resemble the permissions a given user has on a given category. The categories are ordered in a tree. So I

  • Can't scan in Acrobat 10.1.1 / Lion 10.7.1

    I cannot scan using Acrobat X (10.1.1) and an Epson Perfection 4990 scanner because it does not show up in the "select a device" dropdown box.  I can scan using the  application Epson supplies, but the resulting scan is 10-20 as large as I want, and

  • Iphone 4s- 6.1.2- wifi greyed out?

    Ever since I upgraded from ios 6.1 to 6.1.1 then to 6.1.2 I have had my wifi greyed out and unable to use it. This has been like this for a month now. I have reset all settings, restored from points before this update, restored and set up as a new ip

  • Why is the AppStore presented in grey on grey and 6 point type??

    It makes it very hard to read if you don't have 20/20 vision and reminds me of the shyster warrantees and EULAs that you aren't supposed to read??