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
Issue 2971: Service principal data source retrieval by SCIM ID (#3142)
## Changes
Allows for retrieval of service principals as data sources by SCIM ID.
Slight changes to allow for the use of `ExactlyOneOf` in schema
definition, which helps with config validation.
Commit 54810c4 has a working and tested
implementation closer to the original one, if so desired.
Closes#2971
## Tests
Unrelated unit tests failing in the local dev environment.
- [x] `make test` run locally
- [x] relevant change in `docs/` folder
- [ ] covered with integration tests in `internal/acceptance`
- [ ] relevant acceptance tests are passing
- [ ] using Go SDK
---------
Co-authored-by: Alex Ott <[email protected]>
Co-authored-by: Alex Ott <[email protected]>
Co-authored-by: Tanmay Rustagi <[email protected]>
Copy file name to clipboardExpand all lines: NEXT_CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@
8
8
9
9
* Add `bearer_token` to the list of sensitive options in `databricks_connection` ([#4812](https://github.com/databricks/terraform-provider-databricks/pull/4812)).
10
10
* Use single-node cluster for `databricks_sql_permissions` ([#4813](https://github.com/databricks/terraform-provider-databricks/pull/4813)).
11
+
* Allow to retrieve service principal data by SCIM ID ([#3142](https://github.com/databricks/terraform-provider-databricks/pull/3142)).
11
12
* Add support for Lakebase `databricks_database_instance` in `databricks_permissions` ([#4824](https://github.com/databricks/terraform-provider-databricks/pull/4824)).
12
13
* Added support for Alert V2 in `databricks_permissions` ([#4831](https://github.com/databricks/terraform-provider-databricks/pull/4831)).
13
14
* Replace instead of dropping Delta `databricks_sql_table` ([#2424](https://github.com/databricks/terraform-provider-databricks/pull/2424)).
Data source allows you to pick service principals by one of the following attributes (only one of them):
33
33
34
-
-`application_id` - (Required if `display_name` isn't used) ID of the service principal. The service principal must exist before this resource can be retrieved.
35
-
-`display_name` - (Required if `application_id` isn't used) Exact display name of the service principal. The service principal must exist before this resource can be retrieved. In case if there are several service principals with the same name, an error is thrown.
34
+
-`application_id` - (Required if neither `display_name` nor `scim_id` is used) ID of the service principal. The service principal must exist before this resource can be retrieved.
35
+
-`display_name` - (Required if neither `application_id` nor `scim_id` is used) Exact display name of the service principal. The service principal must exist before this resource can be retrieved. In case if there are several service principals with the same name, an error is thrown.
36
+
-`scim_id` - (Required if neither `application_id` nor `display_name` is used) Unique SCIM ID for a service principal in the Databricks workspace. The service principal must exist before this resource can be retrieved.
36
37
37
38
## Attribute Reference
38
39
39
40
Data source exposes the following attributes:
40
41
41
-
-`id` - The id of the service principal.
42
+
-`id` - The id of the service principal (SCIM ID).
42
43
-`external_id` - ID of the service principal in an external identity provider.
43
44
-`display_name` - Display name of the [service principal](../resources/service_principal.md), e.g. `Foo SPN`.
45
+
-`scim_id` - same as `id`.
44
46
-`home` - Home folder of the [service principal](../resources/service_principal.md), e.g. `/Users/11111111-2222-3333-4444-555666777888`.
45
47
-`repos` - Repos location of the [service principal](../resources/service_principal.md), e.g. `/Repos/11111111-2222-3333-4444-555666777888`.
46
48
-`active` - Whether service principal is active or not.
0 commit comments