Programmatically Add User to Report Server (SSRS 2005)

亡梦爱人 提交于 2020-01-06 01:59:07

问题


I would like to be able to programatically add a user to the report server by creating some stored procedure that accepts user_id and does inserts into ReportServer..Users and other associated tables. I am having trouble doing this (especially the column ReportServer..Users.Sid).

Has anyone been able to accomplish this in the past?

The end goal would be to have a script on my local PC that connects via osql to add users to the database so they can ad-hoc query and also add them to the report server so they can have access to the reports website. I have gotten the database access working...that was fairly easy. Having problems with report server.

Thanks!


回答1:


You don't add users to RS this way. It's a seriously bad idea.

Why not just add "Everyone" into the "Browser" role? This is effectively what you are doing...



来源:https://stackoverflow.com/questions/1346818/programmatically-add-user-to-report-server-ssrs-2005

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!