Appajee,
 
Is the value of $USER $ in a form supposed to be the user specified in
the ImpersonateUser() call?  Here is a snippet that submits a new record
to a form.  After submitting, the values of Submitter and Last Modified
By are "Demo", not the ImpersonateUser value.
 
--------------------------------------------------------
Module Module1
 
    Sub Main()
        Try
            Dim ARS As New BMC.ARSystem.Server
            ARS.Login("remedydev", "Demo", "secret")
 
            Dim fvl As New BMC.ARSystem.FieldValueList
            fvl.Item(CUInt(8)) = "Short Description Text"
 
            ARS.ImpersonateUser("sheider")
            ARS.CreateEntry("TEST", fvl)
 
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        End Try
 
    End Sub
 
End Module
--------------------------------------------------------
 
 
VB.Net 2005
ARS .Net v7.0.2523.16350
ARS 6.3 (on Windows Server 2003)
SQL 2000 (on Windows Server 2003)
 
Stephen
 
 

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Papolu, Appajee
Sent: Monday, February 19, 2007 11:09 AM
To: [email protected]
Subject: Re: "Impersonating" a requester using .net Remedy API


** 

Check out BMC.ARSystem.Server class for the following methods:

 

 

      /// <summary>

      /// Impersonate a specific user and make subsequent API calls on
behalf of the given user.

      /// This call can only be used by an Admin privilege user (in that
only admin can impersonate

      /// another user). Calling this method again with a different user
name, will change the

      /// currently impersonated user to the new user name. Calling this
method with a 'null' would

      /// result in stoppage of impersonation.

      /// </summary>

      /// <param name="userName"></param>

      public void ImpersonateUser(string userName)

 

 

      /// <summary>

      /// Stop impersonating. Applicable only if an ImpersonateUser call
were successfully made previously.

      /// </summary>

      public void ImpersonateEnd()

 

 

Regards

Appajee

 

 

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of David Charters
Sent: Monday, February 19, 2007 7:00 AM
To: [email protected]
Subject: Re: "Impersonating" a requester using .net Remedy API

 

I would curious as to what the company standards are that prevent you
from using the mid-tier? I have implemented it in almost every kind of
secure and weird enviromnet there is. So I am curious to know what
standards it does not meet?

 

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of Shellman, David
Sent: Monday, February 19, 2007 9:15 AM
To: [email protected]
Subject: Re: "Impersonating" a requester using .net Remedy API

 

George,

 

With the API, you still go through a login process.  Set the login and
password the same as you do with the Midtier (assuming that you're using
the Midtier for other organizational groups).  If the forms are not
setup to use $USER$ with the submitter field, pass the login value back
in the Submitter field in the API.

 

Dave

________________________________

From: Action Request System discussion list(ARSList)
[mailto:[EMAIL PROTECTED] On Behalf Of George Jungle
Sent: Monday, February 19, 2007 1:05 AM
To: [email protected]
Subject: "Impersonating" a requester using .net Remedy API

** 

Howdy list,

 

This is the first time that I'm having to look into the use of the .net
Remedy API and was wondering if anyone can help me.

 

Basically due to company standards we are NOT able to use the OOB mid
tier for one particular organisational group.

 

What we're doing is developing some custom .net pages for the Requesters
within this group to log in and create/update dockets.

 

What's the resource for finding out how to 'impersonate' the requester
logging the case such that it makes them the submitter (and calls upon
the "Submitter locked mode" functionality)?

 

I've started to trawl through the Dev AR Apps basic and advanced guides
but any help (or potential gotchas) from those that have tried this
would be appreciated.

 

Thanks.

 

george.

 

 

__20060125_______________________This posting was submitted with HTML in
it___ 

__20060125_______________________This posting was submitted with HTML in
it___ __20060125_______________________This posting was submitted with
HTML in it___ __20060125_______________________This posting was
submitted with HTML in it___

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to