CollapseAll image

Get User Information

The following steps describe how to retrieve information about a selected user.

1.  Retrieve the instance of AMT_ AuthorizationService, where the “Name” key equals “Intel(r) AMT Authorization Service”.

2.  Invoke AMT_AuthorizationService.GetUserAclEntryEx with the following parameter:

Parameter

Value

Handle

Specifies the ACL entry to retrieve.

 

Click here for a snippet demonstrating this step

This snippet depends on the handle of an ACL entry created in a diferent use case. See Add a Digest User and Add a Kerberos User.

You can execute this snippet by inserting it into the execution template found here.

  

$handle = "4" # The handle of the user, returned when the entry was created.

$authorizationServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_AuthorizationService WHERE Name='Intel(r) AMT Authorization Service'")

$inputObject = $authorizationServiceRef.CreateMethodInput("GetUserAclEntryEx")

$inputObject.SetProperty("Handle", $handle)

$outputObject = $authorizationServiceRef.InvokeMethod($inputObject)

$returnValue = $outputObject.GetProperty("ReturnValue")

if($returnValue -like "0")

{

    $digestUsername = $outputObject.GetProperty("DigestUsername")

    $accessPermission = $outputObject.GetProperty("AccessPermission")

    $realms = $outputObject.GetProperty("Realms")

}

 

 

3.  Invoke AMT_AuthorizationService.GetAclEnabledState with the following parameter:

Parameter

Value

Handle

Specifies the ACL entry to retrieve.

 

Click here for a snippet demonstrating this step

This snippet depends on the handle of an ACL entry created in a diferent use case. See Add a Digest User and Add a Kerberos User.

You can execute this snippet by inserting it into the execution template found here.

  

$handle = "4" # The handle of the user, returned when the entry was created.

$authorizationServiceRef = $wsmanConnectionObject.NewReference("SELECT * FROM AMT_AuthorizationService WHERE Name='Intel(r) AMT Authorization Service'")

$inputObject = $authorizationServiceRef.CreateMethodInput("GetAclEnabledState")

$inputObject.SetProperty("Handle", $handle)

$outputObject = $authorizationServiceRef.InvokeMethod($inputObject)

$returnValue = $outputObject.GetProperty("ReturnValue")

if($returnValue -like "0")

{

    $enableState = $outputObject.GetProperty("Enabled")

}

 

 

4.  The output parameters contain the user information, except for the DigestPassword, which is confidential information and will be omitted from the response.

Instance Diagram

Not applicable

Classes Used in This Flow

SDK Sample

Located at:<SDK_root>\Windows\Intel_AMT\Samples\WS-Management\SecurityAdmin\C#

 

Copyright © 2006-2013, Intel Corporation. All rights reserved.