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 2019-01-09 11:35:34

Nayana
Member
Registered: 2018-11-15

Create Users from the backend (Metadata repository)

Hi,
Is it possible to create users from the backend (using reportserver metadata repository)? That user should have access to execute reports?

Please guide us on how to achieve this.


Thanks & Regards
Nayana

Offline

#2 2019-01-09 15:44:09

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Create Users from the backend (Metadata repository)

Hi Nayana,

what do you mean exactly by "create users from the backend"?

Regards,
Eduardo

Offline

#3 2019-01-10 05:27:39

Nayana
Member
Registered: 2018-11-15

Re: Create Users from the backend (Metadata repository)

HI,
A separate user group is maintained in OLTP database and we wanted to sync those users with reportserver metadata. That's why we were trying to create users (insert values to the relevant tables) in teh metadata repository itself without creating them from the ReportServer Application.

What we have tried out is,
to create user and API key inside the report server metadata using sql script and use that user to execute reports without creating users in report server  and assign API Key  in Administration -> Users and Groups. Like below

INSERT INTO rs_usermanager_node VALUES(300333, CURRENT_TIMESTAMP(), 0, CURRENT_TIMESTAMP(), 4, 3, NULL, NULL, 4, NULL, 6);
INSERT INTO rs_user VALUES(NULL, 'john', 'wotson', NULL, NULL, NULL, NULL, 'john', 300333);
INSERT INTO rs_user_2_property VALUES(300333, 300444);
INSERT INTO rs_user_property VALUES(300444, 'apikey', 'thisisapikeyofjohn', 0);

Then URL would be like : http://SERVER/reportserver/reportserver/httpauthexport?id=00000&user=john&apikey=thisisapikeyofjohn&format=html&download=false

From this, the relavant user has been created in the reportserver and we were able to see under "Users & Groups". But that user was unable to execute reports using above URL (With APIKey method)


Thanks & Regards
Nayana

Offline

#4 2019-01-10 07:49:45

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Create Users from the backend (Metadata repository)

Hi Nayana,

we don't recommend directly using sql for doing anything in reportserver. At the most, you should use sql to query something. But never to create new reportserver elements. If you use sql directly, you will probably miss some dependencies and you could create behavior that is very difficult to reproduce. You should not do this.

For synchronizing users with an external system, you should use scripting, e.g. a similar script as this for synchronizing users with LDAP: https://reportserver.net/en/guides/scri … sing-LDAP/

This said, please compare the user you created with a user that is working with APIKeys. Maybe some permissions are missing?

"But that user was unable to execute reports using above URL (With APIKey method)" -> Why? What happens exactly? And does this work if you write the exact url with a user created by reportserver?

Regards,
Eduardo

Offline

#5 2019-01-10 08:57:10

Nayana
Member
Registered: 2018-11-15

Re: Create Users from the backend (Metadata repository)

"But that user was unable to execute reports using above URL (With APIKey method)" -> Why? What happens exactly? And does this work if you write the exact url with a user created by reportserver?

Answering to this, if the user created by Reportserver can access via that URL.


Thanks & Regards
Nayana

Offline

#6 2019-01-10 09:03:40

IF_Eduardo
Administrator
Registered: 2016-11-01
Website

Re: Create Users from the backend (Metadata repository)

Hi Nayana,

then please compare the user permissions of both users, (check if both have permissions on the report), etc. But, as said, we don't recommend this.

Regards,
Eduardo

Offline

#7 2019-01-10 09:25:54

Nayana
Member
Registered: 2018-11-15

Re: Create Users from the backend (Metadata repository)

We have checked the permission (Permission Management), both are same.


Thanks & Regards
Nayana

Offline

Board footer

Powered by FluxBB