azuread.getServicePrincipal
Explore with Pulumi AI
Gets information about an existing service principal associated with an application within Azure Active Directory.
API Permissions
The following API permissions are required in order to use this data source.
When authenticated with a service principal, this data source requires one of the following application roles: Application.Read.All
or Directory.Read.All
When authenticated with a user principal, this data source does not require any additional roles.
Example Usage
Look up by application display name
import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
const example = azuread.getServicePrincipal({
displayName: "my-awesome-application",
});
import pulumi
import pulumi_azuread as azuread
example = azuread.get_service_principal(display_name="my-awesome-application")
package main
import (
"github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azuread.LookupServicePrincipal(ctx, &azuread.LookupServicePrincipalArgs{
DisplayName: pulumi.StringRef("my-awesome-application"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureAD = Pulumi.AzureAD;
return await Deployment.RunAsync(() =>
{
var example = AzureAD.GetServicePrincipal.Invoke(new()
{
DisplayName = "my-awesome-application",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuread.AzureadFunctions;
import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
.displayName("my-awesome-application")
.build());
}
}
variables:
example:
fn::invoke:
Function: azuread:getServicePrincipal
Arguments:
displayName: my-awesome-application
Look up by client ID
import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
const example = azuread.getServicePrincipal({
clientId: "00000000-0000-0000-0000-000000000000",
});
import pulumi
import pulumi_azuread as azuread
example = azuread.get_service_principal(client_id="00000000-0000-0000-0000-000000000000")
package main
import (
"github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azuread.LookupServicePrincipal(ctx, &azuread.LookupServicePrincipalArgs{
ClientId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureAD = Pulumi.AzureAD;
return await Deployment.RunAsync(() =>
{
var example = AzureAD.GetServicePrincipal.Invoke(new()
{
ClientId = "00000000-0000-0000-0000-000000000000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuread.AzureadFunctions;
import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
.clientId("00000000-0000-0000-0000-000000000000")
.build());
}
}
variables:
example:
fn::invoke:
Function: azuread:getServicePrincipal
Arguments:
clientId: 00000000-0000-0000-0000-000000000000
Look up by service principal object ID
import * as pulumi from "@pulumi/pulumi";
import * as azuread from "@pulumi/azuread";
const example = azuread.getServicePrincipal({
objectId: "00000000-0000-0000-0000-000000000000",
});
import pulumi
import pulumi_azuread as azuread
example = azuread.get_service_principal(object_id="00000000-0000-0000-0000-000000000000")
package main
import (
"github.com/pulumi/pulumi-azuread/sdk/v6/go/azuread"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azuread.LookupServicePrincipal(ctx, &azuread.LookupServicePrincipalArgs{
ObjectId: pulumi.StringRef("00000000-0000-0000-0000-000000000000"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureAD = Pulumi.AzureAD;
return await Deployment.RunAsync(() =>
{
var example = AzureAD.GetServicePrincipal.Invoke(new()
{
ObjectId = "00000000-0000-0000-0000-000000000000",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azuread.AzureadFunctions;
import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
.objectId("00000000-0000-0000-0000-000000000000")
.build());
}
}
variables:
example:
fn::invoke:
Function: azuread:getServicePrincipal
Arguments:
objectId: 00000000-0000-0000-0000-000000000000
Using getServicePrincipal
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getServicePrincipal(args: GetServicePrincipalArgs, opts?: InvokeOptions): Promise<GetServicePrincipalResult>
function getServicePrincipalOutput(args: GetServicePrincipalOutputArgs, opts?: InvokeOptions): Output<GetServicePrincipalResult>
def get_service_principal(client_id: Optional[str] = None,
display_name: Optional[str] = None,
object_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServicePrincipalResult
def get_service_principal_output(client_id: Optional[pulumi.Input[str]] = None,
display_name: Optional[pulumi.Input[str]] = None,
object_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServicePrincipalResult]
func LookupServicePrincipal(ctx *Context, args *LookupServicePrincipalArgs, opts ...InvokeOption) (*LookupServicePrincipalResult, error)
func LookupServicePrincipalOutput(ctx *Context, args *LookupServicePrincipalOutputArgs, opts ...InvokeOption) LookupServicePrincipalResultOutput
> Note: This function is named LookupServicePrincipal
in the Go SDK.
public static class GetServicePrincipal
{
public static Task<GetServicePrincipalResult> InvokeAsync(GetServicePrincipalArgs args, InvokeOptions? opts = null)
public static Output<GetServicePrincipalResult> Invoke(GetServicePrincipalInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetServicePrincipalResult> getServicePrincipal(GetServicePrincipalArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azuread:index/getServicePrincipal:getServicePrincipal
arguments:
# arguments dictionary
The following arguments are supported:
- Client
Id string - The client ID of the application associated with this service principal.
- Display
Name string - The display name of the application associated with this service principal.
- Object
Id string The object ID of the service principal.
One of
client_id
,display_name
orobject_id
must be specified.
- Client
Id string - The client ID of the application associated with this service principal.
- Display
Name string - The display name of the application associated with this service principal.
- Object
Id string The object ID of the service principal.
One of
client_id
,display_name
orobject_id
must be specified.
- client
Id String - The client ID of the application associated with this service principal.
- display
Name String - The display name of the application associated with this service principal.
- object
Id String The object ID of the service principal.
One of
client_id
,display_name
orobject_id
must be specified.
- client
Id string - The client ID of the application associated with this service principal.
- display
Name string - The display name of the application associated with this service principal.
- object
Id string The object ID of the service principal.
One of
client_id
,display_name
orobject_id
must be specified.
- client_
id str - The client ID of the application associated with this service principal.
- display_
name str - The display name of the application associated with this service principal.
- object_
id str The object ID of the service principal.
One of
client_id
,display_name
orobject_id
must be specified.
- client
Id String - The client ID of the application associated with this service principal.
- display
Name String - The display name of the application associated with this service principal.
- object
Id String The object ID of the service principal.
One of
client_id
,display_name
orobject_id
must be specified.
getServicePrincipal Result
The following output properties are available:
- Account
Enabled bool - Whether the service principal account is enabled.
- Alternative
Names List<string> - A list of alternative names, used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.
- App
Role boolAssignment Required - Whether this service principal requires an app role assignment to a user or group before Azure AD will issue a user or access token to the application.
- App
Role Dictionary<string, string>Ids - A mapping of app role values to app role IDs, as published by the associated application, intended to be useful when referencing app roles in other resources in your configuration.
- App
Roles List<Pulumi.Azure AD. Outputs. Get Service Principal App Role> - A list of app roles published by the associated application, as documented below. For more information official documentation.
- Application
Tenant stringId - The tenant ID where the associated application is registered.
- Client
Id string - The client ID of the application associated with this service principal.
- Description string
- Permission help text that appears in the admin app assignment and consent experiences.
- Display
Name string - Display name for the permission that appears in the admin consent and app assignment experiences.
- List<Pulumi.
Azure AD. Outputs. Get Service Principal Feature Tag> - Features
List<Pulumi.
Azure AD. Outputs. Get Service Principal Feature> - A
features
block as described below. - Homepage
Url string - Home page or landing page of the associated application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Url string - The URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps.
- Logout
Url string - The URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols, taken from the associated application.
- Notes string
- A free text field to capture information about the service principal, typically used for operational purposes.
- Notification
Email List<string>Addresses - A list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.
- Oauth2Permission
Scope Dictionary<string, string>Ids - A mapping of OAuth2.0 permission scope values to scope IDs, as exposed by the associated application, intended to be useful when referencing permission scopes in other resources in your configuration.
- Oauth2Permission
Scopes List<Pulumi.Azure AD. Outputs. Get Service Principal Oauth2Permission Scope> - A collection of OAuth 2.0 delegated permissions exposed by the associated application. Each permission is covered by an
oauth2_permission_scopes
block as documented below. - Object
Id string - The object ID of the service principal.
- Preferred
Single stringSign On Mode - The single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps.
- Redirect
Uris List<string> - A list of URLs where user tokens are sent for sign-in with the associated application, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent for the associated application.
- Saml
Metadata stringUrl - The URL where the service exposes SAML metadata for federation.
- Saml
Single List<Pulumi.Sign Ons Azure AD. Outputs. Get Service Principal Saml Single Sign On> - A
saml_single_sign_on
block as documented below. - Service
Principal List<string>Names - A list of identifier URI(s), copied over from the associated application.
- Sign
In stringAudience - The Microsoft account types that are supported for the associated application. Possible values include
AzureADMyOrg
,AzureADMultipleOrgs
,AzureADandPersonalMicrosoftAccount
orPersonalMicrosoftAccount
. - List<string>
- A list of tags applied to the service principal.
- Type string
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
.
- Account
Enabled bool - Whether the service principal account is enabled.
- Alternative
Names []string - A list of alternative names, used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.
- App
Role boolAssignment Required - Whether this service principal requires an app role assignment to a user or group before Azure AD will issue a user or access token to the application.
- App
Role map[string]stringIds - A mapping of app role values to app role IDs, as published by the associated application, intended to be useful when referencing app roles in other resources in your configuration.
- App
Roles []GetService Principal App Role - A list of app roles published by the associated application, as documented below. For more information official documentation.
- Application
Tenant stringId - The tenant ID where the associated application is registered.
- Client
Id string - The client ID of the application associated with this service principal.
- Description string
- Permission help text that appears in the admin app assignment and consent experiences.
- Display
Name string - Display name for the permission that appears in the admin consent and app assignment experiences.
- []Get
Service Principal Feature Tag - Features
[]Get
Service Principal Feature - A
features
block as described below. - Homepage
Url string - Home page or landing page of the associated application.
- Id string
- The provider-assigned unique ID for this managed resource.
- Login
Url string - The URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps.
- Logout
Url string - The URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols, taken from the associated application.
- Notes string
- A free text field to capture information about the service principal, typically used for operational purposes.
- Notification
Email []stringAddresses - A list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.
- Oauth2Permission
Scope map[string]stringIds - A mapping of OAuth2.0 permission scope values to scope IDs, as exposed by the associated application, intended to be useful when referencing permission scopes in other resources in your configuration.
- Oauth2Permission
Scopes []GetService Principal Oauth2Permission Scope - A collection of OAuth 2.0 delegated permissions exposed by the associated application. Each permission is covered by an
oauth2_permission_scopes
block as documented below. - Object
Id string - The object ID of the service principal.
- Preferred
Single stringSign On Mode - The single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps.
- Redirect
Uris []string - A list of URLs where user tokens are sent for sign-in with the associated application, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent for the associated application.
- Saml
Metadata stringUrl - The URL where the service exposes SAML metadata for federation.
- Saml
Single []GetSign Ons Service Principal Saml Single Sign On - A
saml_single_sign_on
block as documented below. - Service
Principal []stringNames - A list of identifier URI(s), copied over from the associated application.
- Sign
In stringAudience - The Microsoft account types that are supported for the associated application. Possible values include
AzureADMyOrg
,AzureADMultipleOrgs
,AzureADandPersonalMicrosoftAccount
orPersonalMicrosoftAccount
. - []string
- A list of tags applied to the service principal.
- Type string
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
.
- account
Enabled Boolean - Whether the service principal account is enabled.
- alternative
Names List<String> - A list of alternative names, used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.
- app
Role BooleanAssignment Required - Whether this service principal requires an app role assignment to a user or group before Azure AD will issue a user or access token to the application.
- app
Role Map<String,String>Ids - A mapping of app role values to app role IDs, as published by the associated application, intended to be useful when referencing app roles in other resources in your configuration.
- app
Roles List<GetService Principal App Role> - A list of app roles published by the associated application, as documented below. For more information official documentation.
- application
Tenant StringId - The tenant ID where the associated application is registered.
- client
Id String - The client ID of the application associated with this service principal.
- description String
- Permission help text that appears in the admin app assignment and consent experiences.
- display
Name String - Display name for the permission that appears in the admin consent and app assignment experiences.
- List<Get
Service Principal Feature Tag> - features
List<Get
Service Principal Feature> - A
features
block as described below. - homepage
Url String - Home page or landing page of the associated application.
- id String
- The provider-assigned unique ID for this managed resource.
- login
Url String - The URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps.
- logout
Url String - The URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols, taken from the associated application.
- notes String
- A free text field to capture information about the service principal, typically used for operational purposes.
- notification
Email List<String>Addresses - A list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.
- oauth2Permission
Scope Map<String,String>Ids - A mapping of OAuth2.0 permission scope values to scope IDs, as exposed by the associated application, intended to be useful when referencing permission scopes in other resources in your configuration.
- oauth2Permission
Scopes List<GetService Principal Oauth2Permission Scope> - A collection of OAuth 2.0 delegated permissions exposed by the associated application. Each permission is covered by an
oauth2_permission_scopes
block as documented below. - object
Id String - The object ID of the service principal.
- preferred
Single StringSign On Mode - The single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps.
- redirect
Uris List<String> - A list of URLs where user tokens are sent for sign-in with the associated application, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent for the associated application.
- saml
Metadata StringUrl - The URL where the service exposes SAML metadata for federation.
- saml
Single List<GetSign Ons Service Principal Saml Single Sign On> - A
saml_single_sign_on
block as documented below. - service
Principal List<String>Names - A list of identifier URI(s), copied over from the associated application.
- sign
In StringAudience - The Microsoft account types that are supported for the associated application. Possible values include
AzureADMyOrg
,AzureADMultipleOrgs
,AzureADandPersonalMicrosoftAccount
orPersonalMicrosoftAccount
. - List<String>
- A list of tags applied to the service principal.
- type String
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
.
- account
Enabled boolean - Whether the service principal account is enabled.
- alternative
Names string[] - A list of alternative names, used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.
- app
Role booleanAssignment Required - Whether this service principal requires an app role assignment to a user or group before Azure AD will issue a user or access token to the application.
- app
Role {[key: string]: string}Ids - A mapping of app role values to app role IDs, as published by the associated application, intended to be useful when referencing app roles in other resources in your configuration.
- app
Roles GetService Principal App Role[] - A list of app roles published by the associated application, as documented below. For more information official documentation.
- application
Tenant stringId - The tenant ID where the associated application is registered.
- client
Id string - The client ID of the application associated with this service principal.
- description string
- Permission help text that appears in the admin app assignment and consent experiences.
- display
Name string - Display name for the permission that appears in the admin consent and app assignment experiences.
- Get
Service Principal Feature Tag[] - features
Get
Service Principal Feature[] - A
features
block as described below. - homepage
Url string - Home page or landing page of the associated application.
- id string
- The provider-assigned unique ID for this managed resource.
- login
Url string - The URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps.
- logout
Url string - The URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols, taken from the associated application.
- notes string
- A free text field to capture information about the service principal, typically used for operational purposes.
- notification
Email string[]Addresses - A list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.
- oauth2Permission
Scope {[key: string]: string}Ids - A mapping of OAuth2.0 permission scope values to scope IDs, as exposed by the associated application, intended to be useful when referencing permission scopes in other resources in your configuration.
- oauth2Permission
Scopes GetService Principal Oauth2Permission Scope[] - A collection of OAuth 2.0 delegated permissions exposed by the associated application. Each permission is covered by an
oauth2_permission_scopes
block as documented below. - object
Id string - The object ID of the service principal.
- preferred
Single stringSign On Mode - The single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps.
- redirect
Uris string[] - A list of URLs where user tokens are sent for sign-in with the associated application, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent for the associated application.
- saml
Metadata stringUrl - The URL where the service exposes SAML metadata for federation.
- saml
Single GetSign Ons Service Principal Saml Single Sign On[] - A
saml_single_sign_on
block as documented below. - service
Principal string[]Names - A list of identifier URI(s), copied over from the associated application.
- sign
In stringAudience - The Microsoft account types that are supported for the associated application. Possible values include
AzureADMyOrg
,AzureADMultipleOrgs
,AzureADandPersonalMicrosoftAccount
orPersonalMicrosoftAccount
. - string[]
- A list of tags applied to the service principal.
- type string
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
.
- account_
enabled bool - Whether the service principal account is enabled.
- alternative_
names Sequence[str] - A list of alternative names, used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.
- app_
role_ boolassignment_ required - Whether this service principal requires an app role assignment to a user or group before Azure AD will issue a user or access token to the application.
- app_
role_ Mapping[str, str]ids - A mapping of app role values to app role IDs, as published by the associated application, intended to be useful when referencing app roles in other resources in your configuration.
- app_
roles Sequence[GetService Principal App Role] - A list of app roles published by the associated application, as documented below. For more information official documentation.
- application_
tenant_ strid - The tenant ID where the associated application is registered.
- client_
id str - The client ID of the application associated with this service principal.
- description str
- Permission help text that appears in the admin app assignment and consent experiences.
- display_
name str - Display name for the permission that appears in the admin consent and app assignment experiences.
- Sequence[Get
Service Principal Feature Tag] - features
Sequence[Get
Service Principal Feature] - A
features
block as described below. - homepage_
url str - Home page or landing page of the associated application.
- id str
- The provider-assigned unique ID for this managed resource.
- login_
url str - The URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps.
- logout_
url str - The URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols, taken from the associated application.
- notes str
- A free text field to capture information about the service principal, typically used for operational purposes.
- notification_
email_ Sequence[str]addresses - A list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.
- oauth2_
permission_ Mapping[str, str]scope_ ids - A mapping of OAuth2.0 permission scope values to scope IDs, as exposed by the associated application, intended to be useful when referencing permission scopes in other resources in your configuration.
- oauth2_
permission_ Sequence[Getscopes Service Principal Oauth2Permission Scope] - A collection of OAuth 2.0 delegated permissions exposed by the associated application. Each permission is covered by an
oauth2_permission_scopes
block as documented below. - object_
id str - The object ID of the service principal.
- preferred_
single_ strsign_ on_ mode - The single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps.
- redirect_
uris Sequence[str] - A list of URLs where user tokens are sent for sign-in with the associated application, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent for the associated application.
- saml_
metadata_ strurl - The URL where the service exposes SAML metadata for federation.
- saml_
single_ Sequence[Getsign_ ons Service Principal Saml Single Sign On] - A
saml_single_sign_on
block as documented below. - service_
principal_ Sequence[str]names - A list of identifier URI(s), copied over from the associated application.
- sign_
in_ straudience - The Microsoft account types that are supported for the associated application. Possible values include
AzureADMyOrg
,AzureADMultipleOrgs
,AzureADandPersonalMicrosoftAccount
orPersonalMicrosoftAccount
. - Sequence[str]
- A list of tags applied to the service principal.
- type str
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
.
- account
Enabled Boolean - Whether the service principal account is enabled.
- alternative
Names List<String> - A list of alternative names, used to retrieve service principals by subscription, identify resource group and full resource ids for managed identities.
- app
Role BooleanAssignment Required - Whether this service principal requires an app role assignment to a user or group before Azure AD will issue a user or access token to the application.
- app
Role Map<String>Ids - A mapping of app role values to app role IDs, as published by the associated application, intended to be useful when referencing app roles in other resources in your configuration.
- app
Roles List<Property Map> - A list of app roles published by the associated application, as documented below. For more information official documentation.
- application
Tenant StringId - The tenant ID where the associated application is registered.
- client
Id String - The client ID of the application associated with this service principal.
- description String
- Permission help text that appears in the admin app assignment and consent experiences.
- display
Name String - Display name for the permission that appears in the admin consent and app assignment experiences.
- List<Property Map>
- features List<Property Map>
- A
features
block as described below. - homepage
Url String - Home page or landing page of the associated application.
- id String
- The provider-assigned unique ID for this managed resource.
- login
Url String - The URL where the service provider redirects the user to Azure AD to authenticate. Azure AD uses the URL to launch the application from Microsoft 365 or the Azure AD My Apps.
- logout
Url String - The URL that will be used by Microsoft's authorization service to logout an user using OpenId Connect front-channel, back-channel or SAML logout protocols, taken from the associated application.
- notes String
- A free text field to capture information about the service principal, typically used for operational purposes.
- notification
Email List<String>Addresses - A list of email addresses where Azure AD sends a notification when the active certificate is near the expiration date. This is only for the certificates used to sign the SAML token issued for Azure AD Gallery applications.
- oauth2Permission
Scope Map<String>Ids - A mapping of OAuth2.0 permission scope values to scope IDs, as exposed by the associated application, intended to be useful when referencing permission scopes in other resources in your configuration.
- oauth2Permission
Scopes List<Property Map> - A collection of OAuth 2.0 delegated permissions exposed by the associated application. Each permission is covered by an
oauth2_permission_scopes
block as documented below. - object
Id String - The object ID of the service principal.
- preferred
Single StringSign On Mode - The single sign-on mode configured for this application. Azure AD uses the preferred single sign-on mode to launch the application from Microsoft 365 or the Azure AD My Apps.
- redirect
Uris List<String> - A list of URLs where user tokens are sent for sign-in with the associated application, or the redirect URIs where OAuth 2.0 authorization codes and access tokens are sent for the associated application.
- saml
Metadata StringUrl - The URL where the service exposes SAML metadata for federation.
- saml
Single List<Property Map>Sign Ons - A
saml_single_sign_on
block as documented below. - service
Principal List<String>Names - A list of identifier URI(s), copied over from the associated application.
- sign
In StringAudience - The Microsoft account types that are supported for the associated application. Possible values include
AzureADMyOrg
,AzureADMultipleOrgs
,AzureADandPersonalMicrosoftAccount
orPersonalMicrosoftAccount
. - List<String>
- A list of tags applied to the service principal.
- type String
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
.
Supporting Types
GetServicePrincipalAppRole
- Allowed
Member List<string>Types - Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
User
andApplication
, or both. - Description string
- Permission help text that appears in the admin app assignment and consent experiences.
- Display
Name string - The display name of the application associated with this service principal.
- Enabled bool
- Determines if the permission scope is enabled.
- Id string
- The unique identifier of the delegated permission. Must be a valid UUID.
- Value string
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- Allowed
Member []stringTypes - Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
User
andApplication
, or both. - Description string
- Permission help text that appears in the admin app assignment and consent experiences.
- Display
Name string - The display name of the application associated with this service principal.
- Enabled bool
- Determines if the permission scope is enabled.
- Id string
- The unique identifier of the delegated permission. Must be a valid UUID.
- Value string
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- allowed
Member List<String>Types - Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
User
andApplication
, or both. - description String
- Permission help text that appears in the admin app assignment and consent experiences.
- display
Name String - The display name of the application associated with this service principal.
- enabled Boolean
- Determines if the permission scope is enabled.
- id String
- The unique identifier of the delegated permission. Must be a valid UUID.
- value String
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- allowed
Member string[]Types - Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
User
andApplication
, or both. - description string
- Permission help text that appears in the admin app assignment and consent experiences.
- display
Name string - The display name of the application associated with this service principal.
- enabled boolean
- Determines if the permission scope is enabled.
- id string
- The unique identifier of the delegated permission. Must be a valid UUID.
- value string
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- allowed_
member_ Sequence[str]types - Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
User
andApplication
, or both. - description str
- Permission help text that appears in the admin app assignment and consent experiences.
- display_
name str - The display name of the application associated with this service principal.
- enabled bool
- Determines if the permission scope is enabled.
- id str
- The unique identifier of the delegated permission. Must be a valid UUID.
- value str
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- allowed
Member List<String>Types - Specifies whether this app role definition can be assigned to users and groups, or to other applications (that are accessing this application in daemon service scenarios). Possible values are:
User
andApplication
, or both. - description String
- Permission help text that appears in the admin app assignment and consent experiences.
- display
Name String - The display name of the application associated with this service principal.
- enabled Boolean
- Determines if the permission scope is enabled.
- id String
- The unique identifier of the delegated permission. Must be a valid UUID.
- value String
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
GetServicePrincipalFeature
- Custom
Single boolSign On App - Whether this service principal represents a custom SAML application.
- Enterprise
Application bool - Whether this service principal represents an Enterprise Application.
- Gallery
Application bool - Whether this service principal represents a gallery application.
- Visible
To boolUsers - Whether this app is visible to users in My Apps and Office 365 Launcher.
- Custom
Single boolSign On App - Whether this service principal represents a custom SAML application.
- Enterprise
Application bool - Whether this service principal represents an Enterprise Application.
- Gallery
Application bool - Whether this service principal represents a gallery application.
- Visible
To boolUsers - Whether this app is visible to users in My Apps and Office 365 Launcher.
- custom
Single BooleanSign On App - Whether this service principal represents a custom SAML application.
- enterprise
Application Boolean - Whether this service principal represents an Enterprise Application.
- gallery
Application Boolean - Whether this service principal represents a gallery application.
- visible
To BooleanUsers - Whether this app is visible to users in My Apps and Office 365 Launcher.
- custom
Single booleanSign On App - Whether this service principal represents a custom SAML application.
- enterprise
Application boolean - Whether this service principal represents an Enterprise Application.
- gallery
Application boolean - Whether this service principal represents a gallery application.
- visible
To booleanUsers - Whether this app is visible to users in My Apps and Office 365 Launcher.
- custom_
single_ boolsign_ on_ app - Whether this service principal represents a custom SAML application.
- enterprise_
application bool - Whether this service principal represents an Enterprise Application.
- gallery_
application bool - Whether this service principal represents a gallery application.
- visible_
to_ boolusers - Whether this app is visible to users in My Apps and Office 365 Launcher.
- custom
Single BooleanSign On App - Whether this service principal represents a custom SAML application.
- enterprise
Application Boolean - Whether this service principal represents an Enterprise Application.
- gallery
Application Boolean - Whether this service principal represents a gallery application.
- visible
To BooleanUsers - Whether this app is visible to users in My Apps and Office 365 Launcher.
GetServicePrincipalFeatureTag
- Custom
Single boolSign On - Whether this service principal represents a custom SAML application
- Enterprise bool
- Whether this service principal represents an Enterprise Application
- Gallery bool
- Whether this service principal represents a gallery application
- Hide bool
- Whether this app is invisible to users in My Apps and Office 365 Launcher
- Custom
Single boolSign On - Whether this service principal represents a custom SAML application
- Enterprise bool
- Whether this service principal represents an Enterprise Application
- Gallery bool
- Whether this service principal represents a gallery application
- Hide bool
- Whether this app is invisible to users in My Apps and Office 365 Launcher
- custom
Single BooleanSign On - Whether this service principal represents a custom SAML application
- enterprise Boolean
- Whether this service principal represents an Enterprise Application
- gallery Boolean
- Whether this service principal represents a gallery application
- hide Boolean
- Whether this app is invisible to users in My Apps and Office 365 Launcher
- custom
Single booleanSign On - Whether this service principal represents a custom SAML application
- enterprise boolean
- Whether this service principal represents an Enterprise Application
- gallery boolean
- Whether this service principal represents a gallery application
- hide boolean
- Whether this app is invisible to users in My Apps and Office 365 Launcher
- custom_
single_ boolsign_ on - Whether this service principal represents a custom SAML application
- enterprise bool
- Whether this service principal represents an Enterprise Application
- gallery bool
- Whether this service principal represents a gallery application
- hide bool
- Whether this app is invisible to users in My Apps and Office 365 Launcher
- custom
Single BooleanSign On - Whether this service principal represents a custom SAML application
- enterprise Boolean
- Whether this service principal represents an Enterprise Application
- gallery Boolean
- Whether this service principal represents a gallery application
- hide Boolean
- Whether this app is invisible to users in My Apps and Office 365 Launcher
GetServicePrincipalOauth2PermissionScope
- Admin
Consent stringDescription - Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users.
- Admin
Consent stringDisplay Name - Display name for the delegated permission, intended to be read by an administrator granting the permission on behalf of all users.
- Enabled bool
- Determines if the permission scope is enabled.
- Id string
- The unique identifier of the delegated permission. Must be a valid UUID.
- Type string
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
. - User
Consent stringDescription - Delegated permission description that appears in the end user consent experience, intended to be read by a user consenting on their own behalf.
- User
Consent stringDisplay Name - Display name for the delegated permission that appears in the end user consent experience.
- Value string
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- Admin
Consent stringDescription - Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users.
- Admin
Consent stringDisplay Name - Display name for the delegated permission, intended to be read by an administrator granting the permission on behalf of all users.
- Enabled bool
- Determines if the permission scope is enabled.
- Id string
- The unique identifier of the delegated permission. Must be a valid UUID.
- Type string
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
. - User
Consent stringDescription - Delegated permission description that appears in the end user consent experience, intended to be read by a user consenting on their own behalf.
- User
Consent stringDisplay Name - Display name for the delegated permission that appears in the end user consent experience.
- Value string
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- admin
Consent StringDescription - Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users.
- admin
Consent StringDisplay Name - Display name for the delegated permission, intended to be read by an administrator granting the permission on behalf of all users.
- enabled Boolean
- Determines if the permission scope is enabled.
- id String
- The unique identifier of the delegated permission. Must be a valid UUID.
- type String
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
. - user
Consent StringDescription - Delegated permission description that appears in the end user consent experience, intended to be read by a user consenting on their own behalf.
- user
Consent StringDisplay Name - Display name for the delegated permission that appears in the end user consent experience.
- value String
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- admin
Consent stringDescription - Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users.
- admin
Consent stringDisplay Name - Display name for the delegated permission, intended to be read by an administrator granting the permission on behalf of all users.
- enabled boolean
- Determines if the permission scope is enabled.
- id string
- The unique identifier of the delegated permission. Must be a valid UUID.
- type string
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
. - user
Consent stringDescription - Delegated permission description that appears in the end user consent experience, intended to be read by a user consenting on their own behalf.
- user
Consent stringDisplay Name - Display name for the delegated permission that appears in the end user consent experience.
- value string
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- admin_
consent_ strdescription - Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users.
- admin_
consent_ strdisplay_ name - Display name for the delegated permission, intended to be read by an administrator granting the permission on behalf of all users.
- enabled bool
- Determines if the permission scope is enabled.
- id str
- The unique identifier of the delegated permission. Must be a valid UUID.
- type str
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
. - user_
consent_ strdescription - Delegated permission description that appears in the end user consent experience, intended to be read by a user consenting on their own behalf.
- user_
consent_ strdisplay_ name - Display name for the delegated permission that appears in the end user consent experience.
- value str
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
- admin
Consent StringDescription - Delegated permission description that appears in all tenant-wide admin consent experiences, intended to be read by an administrator granting the permission on behalf of all users.
- admin
Consent StringDisplay Name - Display name for the delegated permission, intended to be read by an administrator granting the permission on behalf of all users.
- enabled Boolean
- Determines if the permission scope is enabled.
- id String
- The unique identifier of the delegated permission. Must be a valid UUID.
- type String
- Whether this delegated permission should be considered safe for non-admin users to consent to on behalf of themselves, or whether an administrator should be required for consent to the permissions. Possible values are
User
orAdmin
. - user
Consent StringDescription - Delegated permission description that appears in the end user consent experience, intended to be read by a user consenting on their own behalf.
- user
Consent StringDisplay Name - Display name for the delegated permission that appears in the end user consent experience.
- value String
- The value that is used for the
scp
claim in OAuth 2.0 access tokens.
GetServicePrincipalSamlSingleSignOn
- Relay
State string - The relative URI the service provider would redirect to after completion of the single sign-on flow.
- Relay
State string - The relative URI the service provider would redirect to after completion of the single sign-on flow.
- relay
State String - The relative URI the service provider would redirect to after completion of the single sign-on flow.
- relay
State string - The relative URI the service provider would redirect to after completion of the single sign-on flow.
- relay_
state str - The relative URI the service provider would redirect to after completion of the single sign-on flow.
- relay
State String - The relative URI the service provider would redirect to after completion of the single sign-on flow.
Package Details
- Repository
- Azure Active Directory (Azure AD) pulumi/pulumi-azuread
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azuread
Terraform Provider.