Tuesday, March 27, 2012

Creating a user programmatically

Can I create a user programmatically (without using the ReportManager UI)?
If so, how?check this article:
http://blogs.msdn.com/bryanke/archive/2004/03/17/91736.aspx
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jessica Landisman" <Jessica Landisman@.discussions.microsoft.com> wrote in
message news:D578AACC-3F91-488C-8E69-2E2D8F8420E2@.microsoft.com...
> Can I create a user programmatically (without using the ReportManager
> UI)?
> If so, how?|||Lev,
Thanks for your prompt reply.
In my testing of this blog's suggestion to call GetPolicies() and then
SetPolicies(), SetPolicies only works for a user that is already in the RS
User table. Since I am trying to create a new RS user, that user is not in
the table. An exception is thrown by the SetPolicy method, and the exception
error message is "The user or group name 'Harry.Callahan' is not recognized".
"Lev Semenets [MSFT]" wrote:
> check this article:
> http://blogs.msdn.com/bryanke/archive/2004/03/17/91736.aspx
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Jessica Landisman" <Jessica Landisman@.discussions.microsoft.com> wrote in
> message news:D578AACC-3F91-488C-8E69-2E2D8F8420E2@.microsoft.com...
> > Can I create a user programmatically (without using the ReportManager
> > UI)?
> > If so, how?
>
>|||SetPolicies should add user.
Can you try do it manually (in Report Manager)?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jessica Landisman" <JessicaLandisman@.discussions.microsoft.com> wrote in
message news:6D4AF936-94C3-4C7C-8AA5-558391AD62D5@.microsoft.com...
> Lev,
> Thanks for your prompt reply.
> In my testing of this blog's suggestion to call GetPolicies() and then
> SetPolicies(), SetPolicies only works for a user that is already in the RS
> User table. Since I am trying to create a new RS user, that user is not in
> the table. An exception is thrown by the SetPolicy method, and the
> exception
> error message is "The user or group name 'Harry.Callahan' is not
> recognized".
> "Lev Semenets [MSFT]" wrote:
>> check this article:
>> http://blogs.msdn.com/bryanke/archive/2004/03/17/91736.aspx
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Jessica Landisman" <Jessica Landisman@.discussions.microsoft.com> wrote
>> in
>> message news:D578AACC-3F91-488C-8E69-2E2D8F8420E2@.microsoft.com...
>> > Can I create a user programmatically (without using the ReportManager
>> > UI)?
>> > If so, how?
>>|||I can add a user manually in ReportManager.
I have performed SQL traces during when I add a user using ReportManager and
when I attempted to add a user using the code snippet you sent. The SQL
traces are very different.
"Lev Semenets [MSFT]" wrote:
> SetPolicies should add user.
> Can you try do it manually (in Report Manager)?
> --
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> "Jessica Landisman" <JessicaLandisman@.discussions.microsoft.com> wrote in
> message news:6D4AF936-94C3-4C7C-8AA5-558391AD62D5@.microsoft.com...
> > Lev,
> > Thanks for your prompt reply.
> >
> > In my testing of this blog's suggestion to call GetPolicies() and then
> > SetPolicies(), SetPolicies only works for a user that is already in the RS
> > User table. Since I am trying to create a new RS user, that user is not in
> > the table. An exception is thrown by the SetPolicy method, and the
> > exception
> > error message is "The user or group name 'Harry.Callahan' is not
> > recognized".
> >
> > "Lev Semenets [MSFT]" wrote:
> >
> >> check this article:
> >> http://blogs.msdn.com/bryanke/archive/2004/03/17/91736.aspx
> >>
> >> --
> >> This posting is provided "AS IS" with no warranties, and confers no
> >> rights.
> >>
> >>
> >> "Jessica Landisman" <Jessica Landisman@.discussions.microsoft.com> wrote
> >> in
> >> message news:D578AACC-3F91-488C-8E69-2E2D8F8420E2@.microsoft.com...
> >> > Can I create a user programmatically (without using the ReportManager
> >> > UI)?
> >> > If so, how?
> >>
> >>
> >>
>
>|||that is strange.
Can we take this off this newsgroup?
Could you send me an e-mail?
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Jessica Landisman" <JessicaLandisman@.discussions.microsoft.com> wrote in
message news:F1631A44-47D7-4F07-B792-790CB03D94EE@.microsoft.com...
>I can add a user manually in ReportManager.
> I have performed SQL traces during when I add a user using ReportManager
> and
> when I attempted to add a user using the code snippet you sent. The SQL
> traces are very different.
> "Lev Semenets [MSFT]" wrote:
>> SetPolicies should add user.
>> Can you try do it manually (in Report Manager)?
>> --
>> This posting is provided "AS IS" with no warranties, and confers no
>> rights.
>>
>> "Jessica Landisman" <JessicaLandisman@.discussions.microsoft.com> wrote in
>> message news:6D4AF936-94C3-4C7C-8AA5-558391AD62D5@.microsoft.com...
>> > Lev,
>> > Thanks for your prompt reply.
>> >
>> > In my testing of this blog's suggestion to call GetPolicies() and
>> > then
>> > SetPolicies(), SetPolicies only works for a user that is already in the
>> > RS
>> > User table. Since I am trying to create a new RS user, that user is not
>> > in
>> > the table. An exception is thrown by the SetPolicy method, and the
>> > exception
>> > error message is "The user or group name 'Harry.Callahan' is not
>> > recognized".
>> >
>> > "Lev Semenets [MSFT]" wrote:
>> >
>> >> check this article:
>> >> http://blogs.msdn.com/bryanke/archive/2004/03/17/91736.aspx
>> >>
>> >> --
>> >> This posting is provided "AS IS" with no warranties, and confers no
>> >> rights.
>> >>
>> >>
>> >> "Jessica Landisman" <Jessica Landisman@.discussions.microsoft.com>
>> >> wrote
>> >> in
>> >> message news:D578AACC-3F91-488C-8E69-2E2D8F8420E2@.microsoft.com...
>> >> > Can I create a user programmatically (without using the
>> >> > ReportManager
>> >> > UI)?
>> >> > If so, how?
>> >>
>> >>
>> >>
>>

No comments:

Post a Comment