Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi Guys,
I have a doubt. Is that section access need to be placed in script to apply section action using AD Users?
We have Publisher and want to apply Section action using AD users.
For Instance:
My Login ID is ACD/Shivendoo.kumar and I am manager and I should see all the employees data working Under ME. 3 employees are under me whose emp IDs are 123, 124, 125
So When I login I should see 4 employees data (Mine, 123, 124, 125)
We already have mapping table for AD users. but I am confused how to map that table to my applications?
Please give one example along with code and screenshot if any.
Assuming ACD/Shivendoo.kumar has ID = 100 there can be two main approaches for defining the
Seciton Access table.
In the first example the reduction values are explicitly defined, so that you says what values each user can see after the reduction.
LOAD * Inline [
ACCESS, NTNAME, REDUCTION
USER, ACD/Shivendoo.kumar, 100
USER, ACD/Shivendoo.kumar, 123
USER, ACD/Shivendoo.kumar, 124
USER, ACD/Shivendoo.kumar, 125
];
You can also use use wildcard int he reduction field, to say that a user should see all values. IMPORTANT: The reduction field wildcard corresponds to all values listed in the section access table, _not_ all values in the data table.
LOAD * Inline [
ACCESS, NTNAME, REDUCTION
USER, ACD/Shivendoo.kumar, 100
USER, ACD/Shivendoo.kumar, *
USER, ACD/Employee One, 123
USER, ACD/Employee Two, 124
USER, ACD/Employee Three, 125
];
Always make sure to look at the QlikView Reference Manual and Introduction to Section Access to get an understanding of how Section Access works and example of implementations. If you can not resolve your issue, please provide a sample QVW so that we can see your setup and data, in order to give better advise.
Hi,
Thank you for reply.
I have gone through the document and still have couple of doubts.
I have below query to fetch all AD Users:
SELECT
'USER' AS ACCESS,
NTNAME,
EMPID
FROM DBO.ADUSERS
and getting data into below format
ACCESS | NTNAME | EMPID |
USER | Domain\Shivendoo.Kumar | 1000 |
USER | Domain\Shivendoo.Kumar | 1002 |
USER | Domain\Ram.Kumar | 1002 |
HI please upload ur sample qvd
Regards,
gireesh.
not qvd upload ur qvw
Regards,
Gireesh.