- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OS user as parameter?
Is there a way we can pass user name in query so each user can download data from a table based on this parameter while user should not be able to change the query. We have oracle database and data in a table for different users so wants to restrict. Any assistance will be appreciated. Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Not a direct answer to your question, but the typical solution to your problem is to use DirectQuery and RLS.
https://powerbi.microsoft.com/en-us/documentation/powerbi-admin-rls/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for the update but seems this link not related to desktop version. Waiting for more inputs. Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Sikandar,
>>We have oracle database and data in a table for different users so wants to restrict
The different uses can get different data, they filter the table based on their name? If it is, you need to create a parameter containing all name combinations for differents. Or you also use parametor in Power Query, please review the following article which shows the detailed operations.
POWER BI DESKTOP QUERY PARAMETERS, PART 1
Best Regards,
Angelia
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Thanks for the reply and these filter are for data filteration by I want user id as parameter for data security. So will develop a dashboard and will share with all users and once they will connect will get their own data based on their OS user passed to query. Is there a way to get current OS user as environtment variable or any other way so can use in query like
select name, amount from sales where user_id = username()
thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Have you been able to get any luck on your request? I'm looking to do the same thing with my company.

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
11-29-2024 07:22 AM | |||
01-09-2025 04:52 AM | |||
02-04-2025 04:21 AM | |||
09-02-2024 08:18 AM | |||
Anonymous
| 05-27-2020 04:19 AM |
User | Count |
---|---|
141 | |
115 | |
83 | |
63 | |
48 |