Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Srinivas
Creator
Creator

issue of NTNAME and NTSID

Dear All,

here i faced ntname and ntid issue,

i wrote code like this

load

ACCESS,

NTNAME

from excel path:

but when i reload and open freshly then access denied error showed..... i can't able to open that application.

(i given all restiction also

  • Initial Data Reduction Based on Section Access Checked
  • Strict Exclusion Checked
  • Prohibit Binary Load Checked

)

Second one is

how to use NTSID and implement code please give same codes

Advance

Munna

12 Replies
Siva_Sankar
Master II
Master II

Munna,

Not sure about the code. But do find the attachment for sections access. There you can get the information and steps to implement section access with examples.

Regards.

Siva

qlikpahadi07
Specialist
Specialist

Hi munna,

I don't think it's a trouble may b small mistake from you end check the steps :

  1. Make sure you have added correct NTNAME else your application will not load once reloaded/saved.
  2. No need to check any "Initial Data Reduction" as such that is used when you need to reduce your data with Users to restrict the unauthorized data with users.
  3. load you table between Section Access and Section Application tags.

Example :

Section Access;

LOAD NTNAME,

          ACCESS

FROM

Security_Matrix.xlsx

(ooxml, embedded labels, table is Sheet1);

Section Application;

NT SID:

This field must contain a Windows NT SID.

Example: S-1-5-21-125976590-467238106-1092489882-1378

QlikView will fetch the logon information from the OS and compare it to the value in

this field.

Srinivas
Creator
Creator
Author

Hi Siva,

when i open user name password region showing correct but some other listboxes showed all values.

Access;
LOAD
   
ACCESS,
   
Upper(NTNAME) AS USERID,
   
PASSWORD,
   
Region
FROM
C:\Users\Security.xlsx
(
ooxml, embedded labels, table is Sheet1);
Section Application;
LOAD USERNAME as USERID,
   
UserGroup,
   
GBU ,
     Region
FROM
C:\Users\Group.xlsx
(
ooxml, embedded labels, table is Sheet1);

region have----> north, south,east,west

division  have -----> Eru, empa, ema,xyd...so on

here when i open username(A) and password then

Region showed only one value  (North) it is right  but...

Division showed all values like Eru, empa, ema,xyd...so on

but i don't want that User(A) can see only 'Eru' only

so that mean list box will be apper only one like 'Eru'

Thanks

Munna

Srinivas
Creator
Creator
Author

Hi phadi,

NTNAME working fine,

Load

Access,

NTSID

from Excel path:

its work can you give sample example.....

in i have excel file that excel file have NTSID as your example way have different values

Thanks Advance

Munna

qlikpahadi07
Specialist
Specialist

Hi Munna,

well actually I never tried with NTSID i usually go with NTNAME or USER/PASSWORD in almost all clients and works fine and cover all requirements .

ramkrishna86
Creator II
Creator II

Hi Munna Reddy,

Can you attach your excel sheet so that i can analyse how you have designed your security excel sheet.

RK

Srinivas
Creator
Creator
Author

Hi Pahadi,

NTNAMEPASSWORDACCESSNTSIDGRPUSERNAMERegion
bruhdsc1Hilde De SchryverUSERS-1-5-21-91305380-190758515-3224351304-4459BRUHilde De SchryverALL
bruigro1Irina GrozaUSERS-1-5-21-91305380-190758515-3224351304-50729FEAIrina GrozaAPAC
brujram1Joao RamalheiraUSERS-1-5-21-91305380-190758515-3224351304-41042BRUJoao RamalheiraLAC
brujvil1Julien VillatteUSERS-1-5-21-91305380-190758515-3224351304-10156BRUJulien VillatteLAC
brukkle1Karen KlerkxUSERS-1-5-21-91305380-190758515-3224351304-4465BRUKaren KlerkxLAC
brukanr1Keshwar AnroedhUSERS-1-5-21-91305380-190758515-3224351304-40981EMAKeshwar AnroedhALL
brukper1Kris PeremansUSERS-1-5-21-91305380-190758515-3224351304-4313BRUKris PeremansALL
bruldeg1Lars De GreefUSERS-1-5-21-91305380-190758515-3224351304-4311BRULars De GreefALL
bruldre1Laurent DresseUSERS-1-5-21-91305380-190758515-3224351304-40913SRALaurent DresseALL

like this way i have NTSID, Can you help on this

Please help on this if you have any sample code please reply....

Thanks

Munna

Srinivas
Creator
Creator
Author

Hi Ram,

I will attached the Excel data please find...

NTNAMEPASSWORDACCESSNTSIDGRPUSERNAMERegion
bruhdsc1Hilde De SchryverUSERS-1-5-21-91305380-190758515-3224351304-4459BRUHilde De SchryverALL
bruigro1Irina GrozaUSERS-1-5-21-91305380-190758515-3224351304-50729FEAIrina GrozaAPAC
brujram1Joao RamalheiraUSERS-1-5-21-91305380-190758515-3224351304-41042BRUJoao RamalheiraLAC
brujvil1Julien VillatteUSERS-1-5-21-91305380-190758515-3224351304-10156BRUJulien VillatteLAC
brukkle1Karen KlerkxUSERS-1-5-21-91305380-190758515-3224351304-4465BRUKaren KlerkxLAC
brukanr1Keshwar AnroedhUSERS-1-5-21-91305380-190758515-3224351304-40981EMAKeshwar AnroedhALL
brukper1Kris PeremansUSERS-1-5-21-91305380-190758515-3224351304-4313BRUKris PeremansALL
bruldeg1Lars De GreefUSERS-1-5-21-91305380-190758515-3224351304-4311BRULars De GreefALL
bruldre1Laurent DresseUSERS-1-5-21-91305380-190758515-3224351304-40913SRALaurent DresseALL


Above one is first excel file...


USERNAMEUserGroupGBURegion
Hilde De SchryverGPEALLALL
Irina GrozaHKGALLAPAC
Joao RamalheiraJUAALLLAC
Julien VillatteJUAALLLAC
Karen KlerkxJUSALLLAC
Keshwar AnroedhKEDALLALL
Kris PeremansKEDALLALL
Lars De GreefLAXMEDALL
Laurent DresseLAXMEDALL


this above one is second excel file... Here i wrote code


Access;
LOAD
   
ACCESS,
   
Upper(NTNAME) AS USERID,
   
PASSWORD,
   
Region
FROM
C:\Users\Security.xlsx
(
ooxml, embedded labels, table is Sheet1);
Section Application;
LOAD USERNAME as USERID,
   
UserGroup,
   
GBU ,
     Region
FROM
C:\Users\Group.xlsx
(
ooxml, embedded labels, table is Sheet1);

region have----> ALL,APSC,LAC

GBU  have ----->ALL,MED...so on

here when i open username(Hilde De Schryver) and password then

Region showed only one value  (ALL) it is right  but...

GBU showed all values like ALL,MED...so on

but i don't want that, User(Hilde De Schryver) can see only 'ALL' only  in GBU part.

Note: this GBU not restricted,  Please help on this.......


Thanks

Munna

ramkrishna86
Creator II
Creator II

Hi Munna,

Code and everything looks good, please don't use "ALL" keyword for giving access to whole GBU or Region. "ALL" keyword will not work on server and gives you access denied error.

Thanks,

RK