C# Class Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ActiveDirectoryClient

Show file Open project: Azure/azure-powershell Class Usage Examples

Public Methods

Method Description
ActiveDirectoryClient ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication

Creates new ActiveDirectoryClient using WindowsAzureSubscription.

CreateAppKeyCredential ( string appObjectId, Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : PSADCredential
CreateAppPasswordCredential ( string appObjectId, Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : PSADCredential
CreateApplication ( CreatePSApplicationParameters createParameters ) : PSADApplication
CreateServicePrincipal ( CreatePSServicePrincipalParameters createParameters ) : PSADServicePrincipal
CreateSpKeyCredential ( string spObjectId, Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : PSADCredential
CreateSpPasswordCredential ( string spObjectId, Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : PSADCredential
CreateUser ( Microsoft.Azure.Graph.RBAC.Models.UserCreateParameters userCreateParam ) : PSADUser
FilterGroups ( ) : List
FilterGroups ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
FilterServicePrincipals ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
FilterServices ( ) : List
FilterUsers ( ) : List
FilterUsers ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
GetADObject ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : PSADObject
GetAppCredentials ( string appObjectId ) : List
GetApplication ( string applicationObjectId ) : PSADApplication
GetApplicationWithFilters ( Rest odataQueryFilter ) : IEnumerable
GetGroupMembers ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
GetObjectId ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : System.Guid
GetObjectIdFromApplicationId ( string applicationId ) : string
GetObjectIdFromSPN ( string spn ) : string
GetObjectsByObjectId ( List objectIds ) : List
GetSpCredentials ( string spObjectId ) : List
ListUserGroups ( string principal ) : List
RemoveAllAppCredentials ( string appObjectId ) : void
RemoveAllSpCredentials ( string spObjectId ) : void
RemoveAppCredentialByKeyId ( string appObjectId, System.Guid keyId ) : void
RemoveApplication ( string applicationObjectId ) : void
RemoveServicePrincipal ( string objectId ) : PSADServicePrincipal
RemoveSpCredentialByKeyId ( string spObjectId, System.Guid keyId ) : void
RemoveUser ( string upnOrObjectId ) : void
UpdateApplication ( string appObjectId, ApplicationUpdateParameters parameters ) : void
UpdateUser ( string upnOrObjectId, UserUpdateParameters userUpdateParam ) : PSADUser

Private Methods

Method Description
GetAppKeyCredentials ( string appObjectId ) : List
GetAppPasswordCredentials ( string appObjectId ) : List
GetSpKeyCredentials ( string spObjectId ) : List
GetSpPasswordCredentials ( string spObjectId ) : List
IsSet ( ) : bool
Normalize ( string s ) : string
PatchAppKeyCredentials ( string appObjectId, List keyCredentails ) : void
PatchAppPasswordCredentials ( string appObjectId, List passwordCredentials ) : void
PatchSpKeyCredentials ( string spObjectId, List keyCredentails ) : void
PatchSpPasswordCredentials ( string spObjectId, List passwordCredentials ) : void
ValidateKeyCredential ( Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : void
ValidatePasswordCredential ( Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : void

Method Details

ActiveDirectoryClient() public method

Creates new ActiveDirectoryClient using WindowsAzureSubscription.
public ActiveDirectoryClient ( AzureContext context ) : Microsoft.Azure.Commands.Common.Authentication
context Microsoft.Azure.Commands.Common.Authentication.Models.AzureContext
return Microsoft.Azure.Commands.Common.Authentication

CreateAppKeyCredential() public method

public CreateAppKeyCredential ( string appObjectId, Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : PSADCredential
appObjectId string
credential Microsoft.Azure.Graph.RBAC.Models.KeyCredential
return PSADCredential

CreateAppPasswordCredential() public method

public CreateAppPasswordCredential ( string appObjectId, Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : PSADCredential
appObjectId string
credential Microsoft.Azure.Graph.RBAC.Models.PasswordCredential
return PSADCredential

CreateApplication() public method

public CreateApplication ( CreatePSApplicationParameters createParameters ) : PSADApplication
createParameters CreatePSApplicationParameters
return PSADApplication

CreateServicePrincipal() public method

public CreateServicePrincipal ( CreatePSServicePrincipalParameters createParameters ) : PSADServicePrincipal
createParameters CreatePSServicePrincipalParameters
return PSADServicePrincipal

CreateSpKeyCredential() public method

public CreateSpKeyCredential ( string spObjectId, Microsoft.Azure.Graph.RBAC.Models.KeyCredential credential ) : PSADCredential
spObjectId string
credential Microsoft.Azure.Graph.RBAC.Models.KeyCredential
return PSADCredential

CreateSpPasswordCredential() public method

public CreateSpPasswordCredential ( string spObjectId, Microsoft.Azure.Graph.RBAC.Models.PasswordCredential credential ) : PSADCredential
spObjectId string
credential Microsoft.Azure.Graph.RBAC.Models.PasswordCredential
return PSADCredential

CreateUser() public method

public CreateUser ( Microsoft.Azure.Graph.RBAC.Models.UserCreateParameters userCreateParam ) : PSADUser
userCreateParam Microsoft.Azure.Graph.RBAC.Models.UserCreateParameters
return PSADUser

FilterGroups() public method

public FilterGroups ( ) : List
return List

FilterGroups() public method

public FilterGroups ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
return List

FilterServicePrincipals() public method

public FilterServicePrincipals ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
return List

FilterServices() public method

public FilterServices ( ) : List
return List

FilterUsers() public method

public FilterUsers ( ) : List
return List

FilterUsers() public method

public FilterUsers ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
return List

GetADObject() public method

public GetADObject ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : PSADObject
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
return PSADObject

GetAppCredentials() public method

public GetAppCredentials ( string appObjectId ) : List
appObjectId string
return List

GetApplication() public method

public GetApplication ( string applicationObjectId ) : PSADApplication
applicationObjectId string
return PSADApplication

GetApplicationWithFilters() public method

public GetApplicationWithFilters ( Rest odataQueryFilter ) : IEnumerable
odataQueryFilter Rest
return IEnumerable

GetGroupMembers() public method

public GetGroupMembers ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : List
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
return List

GetObjectId() public method

public GetObjectId ( Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions options ) : System.Guid
options Microsoft.Azure.Commands.Resources.Models.ActiveDirectory.ADObjectFilterOptions
return System.Guid

GetObjectIdFromApplicationId() public method

public GetObjectIdFromApplicationId ( string applicationId ) : string
applicationId string
return string

GetObjectIdFromSPN() public method

public GetObjectIdFromSPN ( string spn ) : string
spn string
return string

GetObjectsByObjectId() public method

public GetObjectsByObjectId ( List objectIds ) : List
objectIds List
return List

GetSpCredentials() public method

public GetSpCredentials ( string spObjectId ) : List
spObjectId string
return List

ListUserGroups() public method

public ListUserGroups ( string principal ) : List
principal string
return List

RemoveAllAppCredentials() public method

public RemoveAllAppCredentials ( string appObjectId ) : void
appObjectId string
return void

RemoveAllSpCredentials() public method

public RemoveAllSpCredentials ( string spObjectId ) : void
spObjectId string
return void

RemoveAppCredentialByKeyId() public method

public RemoveAppCredentialByKeyId ( string appObjectId, System.Guid keyId ) : void
appObjectId string
keyId System.Guid
return void

RemoveApplication() public method

public RemoveApplication ( string applicationObjectId ) : void
applicationObjectId string
return void

RemoveServicePrincipal() public method

public RemoveServicePrincipal ( string objectId ) : PSADServicePrincipal
objectId string
return PSADServicePrincipal

RemoveSpCredentialByKeyId() public method

public RemoveSpCredentialByKeyId ( string spObjectId, System.Guid keyId ) : void
spObjectId string
keyId System.Guid
return void

RemoveUser() public method

public RemoveUser ( string upnOrObjectId ) : void
upnOrObjectId string
return void

UpdateApplication() public method

public UpdateApplication ( string appObjectId, ApplicationUpdateParameters parameters ) : void
appObjectId string
parameters ApplicationUpdateParameters
return void

UpdateUser() public method

public UpdateUser ( string upnOrObjectId, UserUpdateParameters userUpdateParam ) : PSADUser
upnOrObjectId string
userUpdateParam UserUpdateParameters
return PSADUser