You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Improve databricks_service_principals data source (#5164)
## Changes
<!-- Summary of your changes that are easy to understand -->
Changes include:
- don't throw an error when nothing is found/got an empty result
- Added `service_principals` attribute to contain more information about
service principals - SCIM ID, display name, etc.
Resolves#5162, Resolves#4997
## Tests
<!--
How is this tested? Please see the checklist below and also describe any
other relevant tests
-->
- [x] `make test` run locally
- [x] relevant change in `docs/` folder
- [ ] covered with integration tests in `internal/acceptance`
- [ ] using Go SDK
- [ ] using TF Plugin Framework
- [x] has entry in `NEXT_CHANGELOG.md` file
Copy file name to clipboardExpand all lines: docs/data-sources/service_principal.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,8 +47,7 @@ Data source exposes the following attributes:
47
47
-`home` - Home folder of the [service principal](../resources/service_principal.md), e.g. `/Users/11111111-2222-3333-4444-555666777888`.
48
48
-`repos` - Repos location of the [service principal](../resources/service_principal.md), e.g. `/Repos/11111111-2222-3333-4444-555666777888`.
49
49
-`active` - Whether service principal is active or not.
50
-
51
-
*`acl_principal_id` - identifier for use in [databricks_access_control_rule_set](../resources/access_control_rule_set.md), e.g. `servicePrincipals/00000000-0000-0000-0000-000000000000`.
50
+
-`acl_principal_id` - identifier for use in [databricks_access_control_rule_set](../resources/access_control_rule_set.md), e.g. `servicePrincipals/00000000-0000-0000-0000-000000000000`.
Copy file name to clipboardExpand all lines: docs/data-sources/service_principals.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,17 @@ Data source allows you to pick service principals by the following attributes
43
43
44
44
Data source exposes the following attributes:
45
45
46
-
-`application_ids` - List of `application_ids` of service principals. Individual service principal can be retrieved using [databricks_service_principal](service_principal.md) data source
46
+
-`application_ids` - List of `application_ids` of service principals. Individual service principal can be retrieved using [databricks_service_principal](service_principal.md) data source or from `service_principals` attribute.
47
+
-`service_principals` - List of objects describing individual service principals. Each object has the following attributes:
48
+
-`id` - The id of the service principal (SCIM ID).
49
+
-`application_id` - Application ID of the service principal.
50
+
-`display_name` - Display name of the [service principal](../resources/service_principal.md), e.g. `Foo SPN`.
51
+
-`scim_id` - same as `id`.
52
+
-`external_id` - ID of the service principal in an external identity provider.
53
+
-`home` - Home folder of the [service principal](../resources/service_principal.md), e.g. `/Users/11111111-2222-3333-4444-555666777888`.
54
+
-`repos` - Repos location of the [service principal](../resources/service_principal.md), e.g. `/Repos/11111111-2222-3333-4444-555666777888`.
55
+
-`active` - Whether service principal is active or not.
56
+
-`acl_principal_id` - identifier for use in [databricks_access_control_rule_set](../resources/access_control_rule_set.md), e.g. `servicePrincipals/00000000-0000-0000-0000-000000000000`.
0 commit comments