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)

Similar Messages

  • 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

  • Limit dialog processes per user

    Hello,
    We would like to know if it possible to limit dialog processes per user.
    We have a user that he runs every dialog processes without permissions and we would like to limit the number of such processes to, for example, 5. This processes are an RFC for external java program.
    Thanks and regards,
    Néstor.

    <removed by moderator>
    Do not copy and paste. Always quote the source
    Read the "Rules of Engagement"
    Edited by: Juan Reyes on Jan 12, 2010 9:39 AM

  • 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

  • Limit on devices per user that can connect to Office Mobile or Office for iPad apps?

    We are are on an E3 license for Office 365. What is the maximum number of devices that a user can connect to the various mobile apps? I had hard 5 was the max, but can not find any documentation to support this. We are interested in using both Office Mobile
    and the new Office for iPad apps and want to understand any restrictions at the user level. Thanks.

    Hi,
    You are correct 5 devices max per user, these devices could be a PC/Tablet/Phone etc... (they all count as a device)
    see the second row on this page http://office.microsoft.com/en-gb/business/compare-all-office-365-for-business-plans-FX104051403.aspx
    Daniel

  • How To Restrict View of Data Per User

    I am designing a reporting application in Discoverer, from Oracle Applications data. We need to show sales data to the sales people - and we would like a single Discoverer workbook to do this - the challenge is that we need to restrict the data so that the salesperson only sees his/her own data, and cannot view other sales data.
    I will need to use this same methodology for the sales managers. Each sales manager will only be able to see his/her direct reports' sales data.
    How would you design this? Could we use a single Discoverer workbook for all sales people - and there be row-level security to restrict the current users' search results?
    Thank you,
    Rich Magee
    Greenwich, CT

    Yes Rich. We have only one workbook for all the stores in our case. You can create mapping table like this
    Table Name: usermapping
    username salesrepid
    john 10
    michelle 20
    If you are using your own tables/views for your reports create a repid column in them and populate accordingly.Assuming that your custom tables is like this
    Table Name: RepInfo
    line# salesrepid region product amount
    1 10 NE S/W 1000.00
    2 20 SW H/W 500.00
    Create a function like this
    CREATE OR REPLACE FUNCTION setparam (name VARCHAR2)
    RETURN NUMBER
    IS
    BEGIN
    /* Setting the session client information to the value of parameter so that this can be accessed
    by the custom folder in the admin edition */
    dbms_application_info.set_client_info(name);
    RETURN 1;
    END;
    Create a custom folder like
    select a.region,a.product,a.amount
    from
    repinfo a,
    usermapping b
    where
    a.salesrepid = b.salesrepid
    and b.username = USERENV('CLIENT_INFO') --gets the username from the above function which sets the username for the database session.
    The input to above function which is username would be passed from report using a calculation item.You can create a calculation item and select the function setparam and give the input to it 'USER' variable which is gives the username of the current session.
    The workbooks passes the username to function and custom folder would get the username from the function.This approach would allow you to pass the username dynamically and use the same report for all the rep's. I'vent tried VPD concept till now.
    Hope this helps.
    Thanks
    Raj

  • Tailoring Report Data Per Sales Rep

    Hi,
    We have a database that holds information on quotes and sales.
    I wish to create a report that will alert sales reps when their quotes are due to expire. So far I have done the following query:
    SELECT a.QUOTATIONID AS [Quotation ID],
    a.QUOTATIONNAME AS [Reference],
    a.CREATEDDATE AS [Quotation Date],
    a.QUOTATIONEXPIRYDATE AS [Valid Until],
    a.SALESGROUP AS [Sales Manager],
    b.EMPLID AS [Sales Rep Employee ID],
    b.NAME AS [Sales Rep],
    b.EMAIL AS [Email]
    FROM SALESQUOTATIONTABLE a
    INNER JOIN EMPLTABLE b ON a.SALESTAKER = b.EMPLID
    WHERE a.QUOTATIONEXPIRYDATE BETWEEN DATEADD(DAY, 6, GETDATE()) AND DATEADD(DAY, 14, GETDATE())
    This brings back all the data I need. I could now put it into a SSRS report which will run each Monday morning and email oout to all sales reps in XLS format. Id like to make it a little cleverer though. What I want to do is to run the report each Monday
    morning, group the data by sales rep and email it out in XLS format to only the relevant sales reps and have it only contain data for that particular rep. Is this possible? If so how do I do this?
    Cheers
    Paul

    Follow steps as below
    1. use the above query to build a dataset
    2. Use dataset within your SSRS report
    3. Add a grouping and filter on sales rep  in your report
    4. set up a data driven subscription as explained here to render report automatically each Monday. Pass list of sales reps to report parameter through a dataset
    http://beyondrelational.com/modules/2/blogs/101/posts/13460/ssrs-60-steps-to-implement-a-data-driven-subscription.aspx
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Saving report per user

    Hi All,
    I have developed an interactive report. There is a save option, but when I click on that it says "This report will be saved for all users" How can I make the report save per user?
    -Vatsa

    1. Yes that user will need an account that way there is a unique user id associated with the IR report parameters.
    2. The reason it is says that is because you picked save as default report for all users. That is the report everyone will initially see. After you have created a login for the user, log in as that user. Then modify the IR as needed. Lastly click the gear and then click save report. there will be a dropdown to choose to save as a named report. Choose that and then the report will be saved onto a second tab viewable ONLY BY THAT USER.
    Please let me know if you need anymore help.
    -Ghoulies

  • SSAS Cube data display platforms (including per user permissions support)

    Hi,
    I've developed an SSAS cube for a small sales company. The company does not want to invest on sharepoint. They need to display cube data for each sales agent filtering his own records.  
    Excel and SSRS can display cube data but can they filter their data per user using the username in customdata? Can they connect with certain roles?
    Creating a .net application may also be a solution although it should take much time and effort for creation.
    What other options are there to display and work with SSAS cube data?
    What's preferable?
    Thanks
    Namnami

    Hi, 
    I didn't understand your above sentence: "there is only one
    hop and Kerberos is not required"
    what did you mean?
    I don't think roles is a good option for us, we have around 20 salesman and they keep on changing. 
    The cube currently displays in Performance Point by using CustomData and that works great. 
    But we want the users to consume it via excel, I just didn't understand clearly if username can be used
    safely without setting kerberoes. 
    Appreciate your advice!
    Namnami
    *** Update- I understand now, one hop meaning excel connects directly to cube does not require kerberoes and can use username(). Any example for two hops? Thanks a lot , you're advice really helped!

  • Report links by user group

    hi, is it possible to set the "report links" per user group
    for example, the report links are Download, Refresh for user group Sales.
    the report links are Download, Refresh and Modify for user group Sales Admin.
    Just wanna know whether this can be done.
    thanks!

    If "Sales" doesn't have the Answers privilege, then the "Modfiy" link won't be rendered even if specified for the request. So you can just keep it in and all users having access to Answers will see it. Read-only users (i.e. no Answers) won't.
    Cheers,
    C.

  • Limiting Bandwitdth per user with WLC

    Hi,
    Is there anyone who can provide a deeper explanation for "Per-User Bandwidth Contracts (k)" on the "Edit QoS Profiles" menu of a Wireless LAN Controller 4402? Does it limit each value to 0 to 60 Kbps as maximum ONLY, as indicated on the Help window?
    I want to limit 512 Kbps per user (client attached to an AP) not for WLAN.
    I read http://www.cisco.com/univercd/cc/td/doc/product/wireless/hahcont/contc.htm#wp1041926 but it is not sufficient.
    I know I can do it with 3rd party equipments, but it is possible only with APs (1010, LAP1231), Cisco switches and WLC 4402?
    JVC

    Yes I think your assumption is correct. "Per-User Bandwidth Contracts (k)" limits each value at the maximum. This I think I have read in a document stating this information.

  • Can you limit the amount of data accessed per user on an AirPort Extreme?

    Can you limit the amount of data accessed per user on an AirPort Extreme?

    Your question was whether the AirPort Extreme is able to establish data limits per user.
    If you add another router that has this type of capability or install software on another router, then you will be able to establish data limits for each user. The AirPort Extreme will have no control over this.

  • Multiple data sets: a common global dataset and per/report data sets

    Is there a way to have a common dataset included in an actual report data set?
    Case:
    For one project I have about 70 different letters, each letter being a report in Bi Publisher, each one of them having its own dataset(s).
    However all of these letters share a common standardized reference block (e.g. the user, his email address, his phone number, etc), this common reference block comes from a common dataset.
    The layout of the reference block is done by including a sub-llayout (rtf-file).
    The SQL query for getting the dataset of the reference block is always the same, and, for now, is included in each of the 70 reports.
    Ths makes maintenance of this reference block very hard, because each of the 70 reports must be adapted when changes to the reference block/dataset are made.
    Is there a better way to handle this? Can I include a shared dataset that I would define and maintain only once, in each single report definition?

    Hi,
    The use of the subtemplate for the centrally managed layout, is ok.
    However I would like to be able to do the same thing for the datasets in the reports:
    one centrally managed data set (definition) for the common dataset, which is dynamic!, and in our case, a rather complex query
    and
    datasets defined on a per report basis
    It would be nice if we could do a kind of 'include dataset from another report' when defining the datasets for a report.
    Of course, this included dataset is executed within each individual report.
    This possibility would make the maintenance of this one central query easier than when we have to maintain this query in each of the 70 reports over and over again.

  • Limit BTC per user

    Hi,
    SAP R3 on my system, I need to limit the amount of work processes BTC per user, because some users launch several processes at the same time causing inconvenience in the whole system.
    Is there any parameter or report that can control this situation?
    Regards
    Marco Sousa

    Hi,
    As per my knowledge, there is no such option where you can limit the usuage of BTC work process as per user. The alternate would be firstly educate users strictly not to run any huge reports in background during the peak time or remove the access of executing in background. Other thing is look at the possibility of increasing the BTC process if bussiness requirement needs them to execute in background. If resources are not sufficient to increase the BTC process then configure the operation modes and convert the dialog process to BTC process.
    Regards,
    Sharath

  • R12 Restrict Parallel Concurrent Requests Per User to a Limit.

    Hi everyone,
    Is it possible to restrict parallel concurrent requests per user to a limit.
    e.g. UserA sending concurrent requests to submit 15 heavy reports one after another. After 2 minutes he feels free. Now 15 reports running in parallel are heavy enough to take system's performance down. Is there a way to restricting parallal reports by a single user to 5.
    Waitning........
    Regrads,
    M. Farooq Khan.

    Hi,
    Please check the profile optiion
    Concurrent:Active Request Limit
    Thanks,

Maybe you are looking for

  • HT1386 I have exclamation points next to all of my iTunes songs.  How do I get rid of them?

    I started this yesterday, but I lost my converstations.  I'm not that computer savy.  Please help!  I cannot get rid of those exclamation points, and I can't play the music through my computer OR sync with my iPod Touch.  Help!!!!  I have Windows Vis

  • File content retrive/view problem using DBMS_LOB...?

    Below this procedure working fine but getting buffer length/file content display problem... CREATE OR REPLACE Procedure READ_FILE_LOB_tmp IS l_dir CONSTANT VARCHAR2(30) := 'READ_LOB_DIR'; l_fil CONSTANT VARCHAR2(30) := 'testfile.txt'; l_sen CONSTANT

  • Information on Oracle Database 10g Administrator

    Hi, I have recently written OCA PL/SQL Developer exams (1Z0-007 and 1Z0-147) and cleared both the exams successfully. Now i wan to focus on DBA side, so i am planning to write Oracle Database 10g Administrator Certified Associate exams. After going t

  • Creative Cloud Desktop won't load. Just spins after launching.

    I just signed up for the photography subscription and have downloaded and installed the creative cloud desktop. after launching the application, the window just sits and attempts to load with the blue circle spinning. I cannot login or do anything. I

  • Creating Productuion Order

    Hello     I  am trying to convert the planned order into Production Order but I got the error massage No routing selection possible (check entry) Message no. CO240 whats the meaning of CO240 Please help me.