Limit report data to user logged in (AD Authentication)

How can I limit the number of rows that display on a report depending on the user logged in?  I want the user to see only their own data, not the whole report, based on the the user id.  We use active directory authentication to Business Objects Enterprise.

Hi Eileen,
This may be achieved in either of two ways :
1. Applying row level restriction to the Universe off which these reports are based of. Please refer to Universe Designer Guide for more information.
2. By using Publications in XI 3.1. Please refer to Publishing Guide for details.
Regards,
Subhodeep

Similar Messages

  • Limit report data per user

    The DB contains data from several sources\systems.
    I want to limit the user to view reports containing data from his allowed systems only.
    Therefore, I created initilaization block with the following data source:
    select 'USERSYSTEM', us.system_id from auth_user u, auth_user_systems us
    where u.id=us.user_id and u.username=':USER';
    I set it as row-wise variable, but I couldn't reach the USERSYSTEM variable.
    I know the USER is set correctly (in the previous block) .
    Any suggestions?

    It works ok for user who have rows in user_systems DB table.
    The problem is in case there are user, who can access all systems - no rows in user_systems DB table.
    I tried to add filter:
    public.systems.id IN ( CASE WHEN VALUEOF(NQ_SESSION."USERSYSTEM") IS NULL THEN public.systems.id
    ELSE VALUEOF(NQ_SESSION."USERSYSTEM") END )
    or
    CASE WHEN VALUEOF(NQ_SESSION."USERSYSTEM") IS NULL THEN 1=1
    ELSE public.systems.id IN (VALUEOF(NQ_SESSION."USERSYSTEM") END
    Both trials I get no results:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 23006] The session variable, NQ_SESSION.USERSYSTEM, has no value definition. (HY000)

  • Is there any other way to  limit the data a user can see

    We are using Discoverer 10.2.xxx
    We are running it against an Oracle applications database but we do not have Discoverer integrated with the apps. I have created database users for discoverer and granted access to the data at the db level.
    We have about 40 salesreps and we only want each rep to see their own data. We have a high turn over with the reps
    For now, I have created the row level security in that folder in my eul. If the username = XXXX then Salesrep = XXXXX
    OR
    If username = YYYY then DSM = YYYY
    etc.. This goes on for about 40 users We have 3 levels of "users" - Salesrep, DSM or RSM (District or Region sales manager)
    These users are setup in my apps and I can write a database procedure to select their salesrep name based on their username.
    Is there any other way to limit the data that the salesreps can see ?
    Possibly with a stored procedure some way?
    Thanks
    Angie

    At a previous client's, I had created a system not too unlike what you're describing.
    Basically, I created an Oracle table that stored information concerning the salesperson as in Oracle Apps the data was not reliable for what they were doing (ie: with adding Apps modules, sometimes salesperson data was there, but with say, CRM, it was in another place, etc.).
    So, since this table was going to be used for driving everything about a salesperson (commissions, who they report to, when they started, territory, when / if they moved territories and/or manager, etc, etc.) I put lots of good stuff in it that would make life easier for them.
    The end user in charge of all this had was given a Form to add, edit, delete all this good stuff and they were happy.
    When it came time for security, it worked like a charm in that I used the concept of the BIS views where a user has an apps id associated to them and all data was filtered by that id. All I really had to do was to create this view that simply filtered data to that user's id. Then whenever I had a Discoverer report for salespeople, managers, etc. I just made sure the folder used had a join to this filtering view and I chose an item from the filtering view and all worked fine. All Discoverer reports only returned row level information for the salesperson who ran it.
    Likewise, the same Oracle table was queried by another security view that only brought back the same IDs for the salespeople associated to each manager. When this simple view was joined to any sales Discoverer folder (and used in Disco), it limited all data to the salespeople the manager was responsible for.
    Obviously this is just an overview and would take pages to explain, but essentially, if you can associate some kind of unique ID to each salesperson (I used the one returned in BIS views when someone logs into Apps, but you could just assign a different in your case), then you can create a view that filters to that id. Then when that view is brought into the EUL and joined to any other folder in the sales area (and you choose a column from the security view), you'll have what you're referring to - row level security for all salespeople and managers.
    When it works - it sure does look impressive.
    Russ

  • How to Limit the Number of Users Logged into HTML DB

    I'm using LDAP based SSO and I'd like to limit the number of users who can log into the application at a given time. If my users are assigned to groups, can I also limit the number of users who belong to a certain group who can be logged in at one time? Can anyone think of any HTML DB APIs that might be useful in doing this?

    Well if you apply a "time-out" on the session and if the there is a HTML DB table in the FLOWS account that can be queried to see the number of sessions, then you could restrict HTML DB sessions to a certain number. But if you have multiple HTML DB applications, how are you going to know which HTML DB session goes which application?
    It is very ugly. I realistically cannot see a way. Maybe the Oracle folks have a way of limiting the sessions internally within HTML DB
    Just out of curiosity, why do you want to limit the number of users? Maybe if you explain that then that might help in coming up with a solution.
    Mike

  • VAT REPORT BASED ON CURRENT LOGGED IN USER

    Hi Guys,
    I am Working for a client and it they are having 9 branches and for each branch there will be  divided by different Series and different Tax Codes and  they want a  TAX Report based on the User Logged in.Each User Will be Assigned a branch and in the tax code an UDF(Location) has been created and for each tax code location has been entered there.
    So when User 1 of Branch 1 is running the report then the report should show only the record of that particular Branch 1 and
         When User 2 of Branch 2 is running the Report then it should show only branch 2 records .
    I Tired using an FMS to record the Current User Logged in but i am unable to include this in the below query.
    SELECT T0.U_NAME FROM OUSR T0 WHERE INTERNAL_K = $[USER]
    In the Below query , the Report needs to be filtered automatically based on the Current user Logged in(User who is running the report).
    There will be different Branches and Each Branch has One O Two Licenses and whenever the User1 Of Branch 1  runs the report then the report should display only the record related to that particular branch within the given date range.
    So ,to differentiate the Tax codes for each Branches we have created an UDF(Location) in tax codes and enter the branch name in the UDF and also each branch will have 3 different document series and each series.
    Instead of Giving the Location as a Parameter to choose we need to filter the report by the User logged in .
    SELECT distinct  M.DocNum AS 'AR Inv. #', M.DocDate as 'Date',
    l.targettype AS 'TARGET TYPE',
    t4.series,T4.SeriesName,
    case when T4.SeriesName='LOC/HOF' then 'HEAD OFFICE'
           when T4.SeriesName='LOC/CHN' then 'CHENNAI'
            when t4.seriesName ='INS/CHN' THEN 'CHENNAI'
            WHEN T4.SERIESNAME ='STF/CHN' THEN 'CHENNAI'
            WHEN T4.SERIESNAME ='INS/HOF' THEN 'HEAD OFFICE'
           end Location,L.TAXCODE,T6.RATE,
    case when t.statype ='1' then  'VAT'
           WHEN T.STATYPE ='4' THEN 'CST'
           END TAXTYPE,T.STATYPE,
    M.CARDCODE,M.CardName as 'Customer Name',M.NumAtCard as 'Bill No. & Dt.',M.DiscSum,M.RoundDif,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',M.VATSUM,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =1  ) as 'VAT  SALES',
    (SELECT SUM(TaxSum) FROM INV4 t where t.docentry=m.docentry and statype=1  ) as '  VAT COLLECTED ',
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =4  ) as 'CST  SALES',
    (SELECT SUM(TaxSum) FROM INV4 where statype=4 and  DocEntry=M.DocEntry   ) as ' CST COLLECTED ',
    (Select Sum(LineTotal) FROM INV3 Q Where Q.DocEntry=M.DocEntry) as 'FREIGHT',
    M.DocTotal as 'Total (Rs.)'
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    INNER JOIN NNM1 T4 ON M.SERIES=T4.SERIES
    LEFT JOIN OSTC T6 ON T6.CODE= L.TAXCODE
    LEFT JOIN OUBR T7 ON  T7.NAME = T6.U_LOC
    LEFT JOIN OUSR T8 ON T8.BRANCH = T7.CODE
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]')
    AND  TARGETTYPE !='14' and taxrate !='0'  A
    ND T6.RATE != '0'
    and t6.u_loc ='[%2]'
    GROUP BY
    M.DocNum,M.DocDate,M.CARDCODE,M.CardName,M.NumAtCard,M.DocEntry,
    M.DiscSum,M.WTSum,
    M.DocTotal,M.Series,T4.SeriesName,
    T4.REMARK,M.RoundDif,M.VATSUM,T.STATYPE,T.TAXRATE,Q.LINETOTAL,t4.series,
    l.targettype,t.docentry,L.TAXCODE,T6.RATE
    Pls Gimme Some Ideas guys for designing this report .
    Thanks And Regards,
    P.V

    Hai Gordon,
    Thanks for the suggestion but i am sorry to say that after adding the said  Condition  to the below query it is showing the Below error.
    QUERY :
    SELECT distinct  M.DocNum AS 'AR Inv. #', M.DocDate as 'Date',
    l.targettype AS 'TARGET TYPE',
    t4.series,T4.SeriesName,
    case when T4.SeriesName='LOC/HOF' then 'HEAD OFFICE'
           when T4.SeriesName='LOC/CHN' then 'CHENNAI'
            when t4.seriesName ='INS/CHN' THEN 'CHENNAI'
            WHEN T4.SERIESNAME ='STF/CHN' THEN 'CHENNAI'
            WHEN T4.SERIESNAME ='INS/HOF' THEN 'HEAD OFFICE'
           end Location,L.TAXCODE,T6.RATE,
    case when t.statype ='1' then  'VAT'
           WHEN T.STATYPE ='4' THEN 'CST'
           END TAXTYPE,T.STATYPE,
    M.CARDCODE,M.CardName as 'Customer Name',M.NumAtCard as 'Bill No. & Dt.',M.DiscSum,M.RoundDif,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry) as 'Base Amt.(Rs.)',M.VATSUM,
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =1  ) as 'VAT  SALES',
    (SELECT SUM(TaxSum) FROM INV4 t where t.docentry=m.docentry and statype=1  ) as '  VAT COLLECTED ',
    (Select Sum(LineTotal) FROM INV1 L Where L.DocEntry=M.DocEntry and statype =4  ) as 'CST  SALES',
    (SELECT SUM(TaxSum) FROM INV4 where statype=4 and  DocEntry=M.DocEntry   ) as ' CST COLLECTED ',
    (Select Sum(LineTotal) FROM INV3 Q Where Q.DocEntry=M.DocEntry) as 'FREIGHT',
    M.DocTotal as 'Total (Rs.)'
    FROM OINV M LEFT OUTER JOIN INV1 L on L.DocEntry=M.DocEntry
    LEFT OUTER JOIN INV4 T on T.DocEntry=L.DocEntry
    LEFT OUTER JOIN INV5 J ON M.DocEntry = J.AbsEntry
    LEFT OUTER JOIN INV3 Q ON M.DocEntry = Q.DocEntry
    INNER JOIN NNM1 T4 ON M.SERIES=T4.SERIES
    LEFT JOIN OSTC T6 ON T6.CODE= L.TAXCODE
    LEFT JOIN OUBR T7 ON  T7.NAME = T6.U_LOC
    LEFT JOIN OUSR T8 ON T8.BRANCH = T7.CODE
    WHERE (M.DocDate >= '[%0]' AND M.DocDate <= '[%1]')
    AND  TARGETTYPE !='14' and taxrate !='0'  AND T6.RATE != '0'
    AND $[USER] in (SELECT USERID FROM OUSR WHERE BRANCH = T7.CODE)
    GROUP BY
    M.DocNum,M.DocDate,M.CARDCODE,M.CardName,M.NumAtCard,M.DocEntry,
    M.DiscSum,M.WTSum,
    M.DocTotal,M.Series,T4.SeriesName,
    T4.REMARK,M.RoundDif,M.VATSUM,T.STATYPE,T.TAXRATE,Q.LINETOTAL,t4.series,
    l.targettype,t.docentry,L.TAXCODE,T6.RATE
    ERROR
    1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near 'USER'.
    2). [Microsoft][SQL Server Native Client 10.0][SQL Server]Incorrect syntax near the keyword 'GROUP'.
    3). [Microsoft][SQL Server Native Client 10.0][SQL Server]Statement 'User-Defined Values' (CSHS) (s) could not be prepared.
    Regards,
    P.V

  • How to show all user logged in/loggout in Report

    How to display All User Logged in time & Logout Time?
    Hi..
    I want to display All user in Portlet a report that show us all user that logged in the portal,
    their username,
    their time logged in,
    their time logged out..
    where can i find these information?
    do Portal have already something like this?
    Plz advise..Thanks.

    Thanks Sharmila for answering my question..
    Similar question i want to ask..
    I look at the table, and view it's data...
    Mmm..some i don't recognize...
    Actually, i just want to grep
    1)The UserId of the user who logged in the portal
    2)The time he logged in the portal
    3)the time he log out the portal
    That's all..
    How can i do that?..
    I plan to create one table to store the data, and plan to grab the data by jsp....
    What are the table/function/api that can i use and how?
    Plz advise.
    Thanks

  • Please help: User cannot see webi report data

    Hi,
    I've got a wired problem here in my webi report. Basically I am located in Singapore and produced a webi report for our user in UK. The report looks totally fine with all the data shown correctly. But when our report user logged into the dashboard from UK, she could only see partial data and some of the information are missing(blank cells in the report).
    To verify the cause I've done the following test:
    1. I remote control her computer and log into dashboard using my account, the result is I get same problem and I cannot see some of the data.
    2. I let her remote control my pc and log into dashboard using her account, she no longer has this problem and can see complete data.
    We use same version of IE, same JAVA version. And the report data is not time sensitive, so different time zone might not the possible cause.
    This problem is killing me. Can anyone please help and let me know any possible solution? Thanks so much.
    Edited by: Sinsin Tan on Jul 14, 2010 5:59 AM

    Hi Sinsin, what version of BusinessObjects are you using? Is it XI 3.1?
    I don't know if it is the same problem or not, but I have seen that before when a user cannot view the data, change the font and/or background color and the data becomes visible. Reinstalling the client fixed that problem. If you couldn't figure out the root cause, you might want to consider this option.
    If you are using the BusinessObjects tool, you should join [ASUG|www.asug.com]

  • Report the computers has more than 3 users logged in for greater than 10 hours in a week

    I am looking for a report that gives, list of computers that has/had more than 3 users logged into computer for 10 hours in past one week.
    Help.
    Regards,
    Saravanan R
    saravanan rajappa

    I think, i have found the answer self..
    SELECT X.ResourceID
    ,X.TopConsoleUser0
    ,X.SecurityLogStartDate0
    ,X.TotalConsoleTime0
    ,X.TotalConsoleUsers0
    ,X.TotalSecurityLogTime0
    ,Y.Name0
    FROM
    [CM_CAS].[dbo].[v_GS_SYSTEM_CONSOLE_USAGE_MAXGROUP] X,
    [CM_CAS].[dbo].[v_GS_COMPUTER_SYSTEM] Y
    WHERE
     X.ResourceID=Y.ResourceID
     AND
     X.TotalConsoleUsers0>=3
     AND
     X.TotalConsoleTime0>=600
     AND
     X.TotalSecurityLogTime0>=3840
    Is the data coming out of this query right?
    saravanan rajappa

  • How to retrieve users logging-in and logging-out date and times in SharePoint

    At the moment I am using SherePoint 2013 with a few tenants.
    I am going to have access to the users logging-in and logging-out dates and times.
    For instance, I would like to know the detail of the dates and times which a particular user of a tenant has logged-in and logged-out during the past few months.
    Any idea?

    You can retrieve that info from the IIS log files. Maybe you can use a free IIS reporting tool that I've built and adjust it to your own needs, you can get it here:
    http://gallery.technet.microsoft.com/office/The-SharePoint-Flavored-5b03f323
    Btw, in a web environment usually there is no such thing as the log-out date and time because the end user just stops making requests. So, you've got to take a look at the last request and by default, after 20 minutes the session times out and you can assume
    the session has ended.
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • How to get the dates a user has logged into the portal??

    I need to know all the times and the dates a user has loggin to the portal? Do you know any way to do this? I was trying to use "successfullogoncount" from UME_STRING of the PCD database but it doesn't say anything about the dates. I also try to use "lastsuccessfulllogon" from the sama table but, as the name says, it just give me the last date of logon... Please help!!!

    Hi Pablo,
    probably you could work with Portal activity reports.
    This can generate reports on activity in the portal, either reports on how many users were logged on to the portal or reports on the most popular pages and iViews.
    look out on this weblog at
    https://www.sdn.sap.com/sdn/weblogs.sdn?blog=/pub/wlg/1242. [original link is broken] [original link is broken] [original link is broken]
    From this you can know which user has logged on at which date and time.
    If you are not looking for Portal activity reports try this:
    You can  get this information in the Visual Administrator of the J2EE Engine.
    Goto  Security Provider Service -> Runtime -> Login (Sessions).
    This would return a table showing the users along with the logging in start date&time, (if logged out) log out date&time, user-Ids, etc.
    Hope this helps,
    Regards,
    Uma.
    Message was edited by: Uma Thirugnanam

  • Report data filters depending on user

    I have web intelligence report returning data grouped by departments. Is it possible to filter report data by department for user logged in depending on user's department?
    Thanks
    Edited by: Denis Sapunkov on Aug 19, 2010 12:58 PM

    This can be achieved in 3 ways:
    1. In Web Intelligence
    Providing you have a table in your database that holds username and department you create a webi report where you select "Dept. Username", "Department" and all other objects you require for your report.
    - Run the Query
    - Create a new variable called CurrentUser => Formula: =CurrentUser()
    - Create a new variable called "Department Filter" => Formula: =If([CurrentUser] = "Dept. Username" ; "Yes" ; "No")
    - Create a new report filter: Department Filter = "Yes"
    This will only return the deprtment for the user that is currently logged on to BO.
    2. On universe level you could use access restrictions to achieve this
    3. If you require to schedule the report, you could create a group for each department and assign this group to a profile that filters on department.
    Hope this helps!

  • User logged on report and Scheduling of same

    Dear Experts
    I hv to code a report showing how many users logged on at different sites. This report should also display the network status.
    There may be network connectivity at site, but SAP might not be running. This info also supposed to be in report.
    I hv to schedule this report. The report should be mailed automatically at specified time.
    Can any one guide.
    if any one document related to this, pls share.
    Regards,
    Jaspal

    Thanks for the reply Yannick.
    We have install/configure WebCenter analytics and activity graph.
    Wehave added Login Metrics in our Group Space and we are getting default login count for specific time frame but when we define a filter under User Property of any property like city, department name, phone title etc after refreshing data it is giving error like
    WCS#2011.03.31.12.47.31 : Irresolvable error(s) occurred. You may want to contact Administrator with the error reference.
    Please help how to solve this.

  • Record Number of users logged in to Portal and bring the data in to BI

    HI,
    I have a requirement for identifying the number of users logging in to SRM Portal and bringing those information in to BI and reporting them
    Can any one please tell me, how do i need to find those
    I checked tables USR01, USR02, USR03, USR41 etc but none of them gives the proper user/server information needed,
    SM04 transaction logs both user logging in to SRM server as well as SRM portal, but i need to find the underlying table for SM04, with which i can get the number of users logged in to the portal on a particular date range.
    If not, can anyone please tell me what is the best way to identify number of users logged in to SRM portal on a particular date and capturing those information and bringing in to BI and reporting them in BI
    Thanks in advance
    Pooja
    Edited by: Pooja on Nov 25, 2008 5:10 PM

    Please check the below link. should guide you in identifying the number of users logged into Portal which can be used for your reporting.
    [/message/319314#319314 [original link is broken];
    Thanks,
    Sruthi

  • AP Aging report - key date for user entry

    Hi All,
    We have a requirement to calculate aging buckets like 0-30,31-60,61-90...etc.
    I know the key date for this report is created on net due date in SAP standard report.
    In standard SAP report , key date is always a system date(SY-DATUM).
    What we need for this report is , we need to get all the invoices which are outstanding as of that date(the date which user enters).
    If user enters today's date(08/28/07) , he should get all the invoices outstanding till that date in aging buckets and if user enters some date in the past like 07/26/07, he should get all the invoices outstanding as of that date.
    Can  someone Pls tell me if aging buckets are calculated based on a user entry ?
    Regards,
    Kumar

    Hi Voodi,
    Aging in the standard report is being calculated like below...
    1.For open items
    Posting date<key date
    Item status = O
    2.Posting date < keydate and clearing date > key date and net due date with offsets on keydate ( key date + 1 - keydate+30 --- for 1-30 days) like wise for all aging buckets.
    in this scenarion , key date is always system date ie today's date.
    But user wants to get all the invoices based on his user entry...
    is this possible with the same standard key date variable or do we need implement any other logic???
    Regards,
    Kumar

  • How to bind the data from user table into user report

    Hi All,
      Please assist me to bind the data from user table into user report. I did create an user table with data and create a user report template (using Query Print Layout). How can I display my data into report format which I created before? Any sample program or document I can refer?
    Platform: SAPB1 2005A
    Add On Language: VB.Net 2003
    Thanks.
    rgds
    ERIC

    Hi Ibai,
      Thanks for your feed back. I give you an example.
    Let say now i wanna print employee list, so i will go
    1. Main Menu -> Reports -> HR -> Employee List
    2. Choose the Selection Criteria -> OK
    3. Matrix will display (Employee List)
    4. I can print the report click on print button
    5. Printing report
    My target
    1. Main Menu -> Eric_SubMenu -> Employee List
    2. Matrix will display (Employee List)
    3. Print button
    4. Print report
    My problem
    Now I would like to use my own report format. My own report format means I wanna add on my logo or do some customization within the employee report. So how I am going to do? I only able to display the employee list in matrix. How do I create a new report format and display it.
    Thanks.
    rgds
    ERIC

Maybe you are looking for

  • Download excel file

    Hi All, I m using the csv file to download the data in excel sheet. Its downloading properly for less number of records(say 10,000 records). But its not downloading properly for large number of records(i.e.18000) what could be the reason behind it? I

  • Who can tell me how to use ni-imaq functions imgSessionSerialWrite and imgSessionSerialRead to set and get my carema attribute?

    Who can tell me how to use ni-imaq functions imgSessionSerialFlash,imgSessionSerialWrite and imgSessionSerialRead to set and get my carema attribute? My camera is duncantech ms3100 and the frame grabber is pci-1428.I use ni-imaq2.6.When I use these f

  • Re : Multiple values resut of CASE statement

    Hello All, Hope all is well. I was trying to basically return multiple values if a certain value 'X' was passed. for example, select case T1.C1 when 'X' then ('XX','YY') else T1.C1 end from T1 but I am getting error. I am unable to figure out as to h

  • Error in creating snapshot

    Hi, I use the following script to create snapshot for my table everyday. CREATE MATERIALIZED VIEW item20060830 NOCACHE NOPARALLEL BUILD IMMEDIATE USING INDEX NEVER REFRESH AS SELECT FROM item; However, these few days, it fails to do so and gives me t

  • HT5622 How to delete Apple ID

    Hello Everyone, I need to know how to delete an Apple ID account. Please advice, Thanks