Announcement

Migration of this forum

Dear users of this forum,

we are pleased to inform you that we will be updating the software behind this forum in the near future.

Existing posts, users and categories will remain untouched.

Important:

  • Each user will need to reset their password.
  • Please select "I forgot my password".
  • Enter the email address you used to register in this forum.
  • You will receive an email with a link to set a new password.
  • Please choose a new (secure) password and confirm the process.

We will keep you informed in the pinned thread.

Kind regards,
Your ReportServer Team


Migration des Forums

Liebe Nutzer dieses Forums,

wir freuen uns, euch mitteilen zu können, dass wir in naher Zukunft die Software hinter diesem Forum aktualisieren werden.

Existierende Beiträge, Nutzer und Kategorien bleiben weiterhin bestehen!

Wichtig:

  • Jeder Nutzer muss sein Passwort neu vergeben.
  • Wählt dazu einfach "Ich habe mein Passwort vergessen".
  • Gebt die E-Mail-Adresse ein, mit der ihr registriert seid.
  • Ihr erhaltet eine E-Mail mit einem Link zur Passwortvergabe.
  • Bitte wählt ein neues (sicheres) Passwort und bestätigt den Vorgang.

Wir halten euch im angepinnten Beitrag auf dem Laufenden!

Mit vielen Grüßen
Euer ReportServer Team

#1 2016-01-11 15:38:49

Ronen
Member
Registered: 2015-10-12

Passing value for user variable through URL

Hello

I have configured the httpauthexecute to be able to access specific reports.

The report I am accessing through URL has a user variable (UserClients) to which I want to pass a specific value. However when accessing the URL the returned report ignores the passed value and returns entries based on the executing user user variable.

Specifically  - this is the requested URL:

https://server/dir/dir/httpauthexport?id=102&format=pdf&user=Bilbo&password=Baggins&p_UserClients=4

UserClients is a list variable and the executing user has the list configured with the following values [1|2|3|4|5]. 

The returned report by the above URL is as if I am requesting the following URL:
https://server/dir/dir/httpauthexport?id=102&format=pdf&user=Bilbo&password=Baggins&p_UserClients=1|2|3|4|5

Can you please advice?

Thanks

Ronen

Offline

#2 2016-01-11 16:12:49

Thorsten J. Krause
Guest

Re: Passing value for user variable through URL

Hi Ronen,

unfortunately this is the expected behavior. One of the principles of user variables is that the returned values can be trusted and can not be manipulated by user input. You can either - if you don't mind the fact that there is no way to enforce the restrictions that might be implemented through user variables - replace the user variable with a standard parameter, or replace the httpauthexport with a mechanism to actually log in the correct user, some kind of single sign on, for example.

Cheers,
Thorsten

#3 2016-01-11 17:19:13

Ronen
Member
Registered: 2015-10-12

Re: Passing value for user variable through URL

Thanks Throsten.

I have read in the administrator guide that: p_ can be set to set a list parameter:
p_myparameter=abc|def, for instance, can be used to set a list parameter to abc and def.

Is this a parameter type that is different than a user variable?

Thanks

ronen

Offline

#4 2016-01-11 17:31:16

Thorsten J. Krause
Guest

Re: Passing value for user variable through URL

Hi Ronen,

in this context "list parameter" refers to a multi select Datasource Parameter.
If you add one of these to your report you can set its value with the syntax you mentioned.

Cheers,
Thorsten

#5 2016-01-11 17:42:39

Ronen
Member
Registered: 2015-10-12

Re: Passing value for user variable through URL

Thanks Thorsten.

I will check how I can use this for my needs.

Offline

Board footer

Powered by FluxBB