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

Announcements
April 13–15 - Dare to Unleash a New Professional You at Qlik Connect 2026: Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
spividori
Specialist
Specialist

Section Acces

Hi.

In my hidden script I have the following code:

Access;
LOAD * INLINE [
ACCESS, USERID, PASSWORD
ADMIN, ADMIN, ADMIN   
USER, UNO, UNO
USER, DOS,DOS
USER, TRES,TRES
USER, CUATRO,CUATRO
USER,CINCO,CINCO
]
;

Section Application;
LOAD * INLINE [
USERID, SUCURSAL
UNO, 'ARG'
DOS, 'BRA'
TRES, 'CHI'
CUATRO,'PAR'
]
;

In this way the user entering UNO, can see ARG, DOS user can see BRA and so on.

As I have to do so that the user CINCO can see all SUCURSAL.

Regards.

6 Replies
calvindk
Creator III
Creator III

Section Application;
LOAD * INLINE [
USERID, SUCURSAL
UNO, 'ARG'
DOS, 'BRA'
TRES, 'CHI'
CUATRO,'PAR'

CINCO,'ARG'

CINCO,'BRA'

CINCO,'CHI'

CINCO,'PAR'

];

erikzions
Creator
Creator

I beleive you can just leave the field blank and it will give him access to everything. 

Section Application;
LOAD * INLINE [
USERID, SUCURSAL
UNO, 'ARG'
DOS, 'BRA'
TRES, 'CHI'
CUATRO,'PAR'

CINCO,

];

You can also use an asteric '*'  but that will only give you all the values that have been enumerated.  For example, it you also had a value of 'JAP'  Cinco would not be able to see it.

Section Application;
LOAD * INLINE [
USERID, SUCURSAL
UNO, 'ARG'
DOS, 'BRA'
TRES, 'CHI'
CUATRO,'PAR'

CINCO,*

];

spividori
Specialist
Specialist
Author

Hi.

Anders:

But if you add a branch I have to assign the user CINCO.

INLINE is an example, I read these USERID and SUCURSAL data from a database.

Erik.

It works, but when I see the list of SUCURSAL appears white or asterisk.

Captura.PNG

This is the solution I found:

Section

Application;
Usu_suc:
LOAD * INLINE [
USERID, SUCURSAL
UNO,     ARG
DOS,      BRA
TRES,      CHI
CUATRO,PAR
]
;

Usu_see_all:
LOAD 'CINCO' AS US
Resident Usu_suc;

join(Usu_see_all)
LOAD SUCURSAL AS SUC_SEE_ALL
Resident Usu_suc;

Concatenate(Usu_suc)
LOAD US AS USERID,
SUC_SEE_ALL AS SUCURSAL
Resident Usu_see_all;

DROP Table Usu_see_all;

In this way all the branches are assigned to the user 5. Thanks.

Regards.

Not applicable

Hola, estoy creando un Section Access y en el momento de entrar con el usuario identificado como Admin no hay problema y me deja entrar... pero cuando ingreso otro Usuario creado, me deja pasar el primer filtro que es el nombre del usuario y cuando pongo la contraseña por primera vez (bien digitada) me sale que no puedo entrar... que será lo que tengo que hacer para evitar este problema. he realizado este procedimiento igual con otros documentos y funcionan perfecto... anexo pantalla del error para ver si alguien me pude ayudar...

Imagen1.png

Imagen2.png

gracias

Miguel Ángel BaeyensQlikTech Admin

spividori
Specialist
Specialist
Author

Hola Mauricio.

No podrías subir el ejemplo con el section acces para revisarlo?.

Saludos.

Not applicable

Es algo asi...

Section Access;

LOAD ACCESS,

     USERID,

     PASSWORD,

     Nombre_canal,

     Nombre_Area_Negocio

FROM

[\\10.104.20.180\inf_interna\Usuarios ESP GERENTES.xlsx]

(ooxml, embedded labels, table is [Section Access]);

Section Application;

En otros documentos tengo exactamente la misma estructura, pero cambia los campos que subo por un * y adicional el archivo fuente... y funciona perfecto, me hace la restricción y me filtra según el usuario... solo para aclarar, el tema del * ya lo valide acá también... y no funcionó...