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
@@ -13,16 +13,95 @@ The [IAM-CTL](https://github.com/wso2-extensions/identity-tools-cli){:target="_b
13
13
14
14
### Supported Resource Types
15
15
16
-
IAM-CTL currently supports the following resource types:
16
+
IAM-CTL provides support for propagating the following resource types:
17
17
18
-
-**Applications**
19
-
-**Identity Providers**
20
-
-**Claims**
21
-
-**User Stores**
18
+
<table>
19
+
<thead>
20
+
<tr>
21
+
<th>Organization Type</th>
22
+
<th>Supported Resources</th>
23
+
</tr>
24
+
</thead>
25
+
<tbody>
26
+
<tr>
27
+
<td>Root Organization</td>
28
+
<td>Applications, Identity Providers, Claims, User Stores</td>
29
+
</tr>
30
+
<tr>
31
+
<td>Child Organization</td>
32
+
<td>Applications, Identity Providers, User Stores</td>
33
+
</tr>
34
+
</tbody>
35
+
</table>
22
36
23
37
## Getting Started
24
38
25
-
### Setting up
39
+
Before using IAM-CTL, you need to register Machine-to-Machine (M2M) applications in your target environments. If you are propagating resources between root orgs, you need to create M2M apps in root organizations. If you are propagating resources between child organization, you need to create application in the root organization and share it with the relevant child organization. These applications will be used by IAM-CTL to authenticate and perform operations on your behalf.
40
+
41
+
### Register an application for resource propagation across root organizations
42
+
43
+
Follow the steps below to register an M2M application.
44
+
45
+
1.[Register an M2M application]({{base_path}}/guides/applications/register-machine-to-machine-app/){:target="_blank"} with the following API authorization.
Take note of the **Client ID** and **Client Secret** of the M2M application you created.
71
+
72
+
### Register an application for resource propagation across child organizations
73
+
74
+
If the target environment is a child organization, ensure that a Standard-Based Application is created within the root organization and shared with that specific child organization.
75
+
76
+
1. Register a Standard-Based Application in the root organization.
77
+
2. Share the application with the relevant child organization (e.g., wso2.com).
78
+
3. Allow following grant types in the newly created Standard-Based Application:
79
+
- Client Credentials
80
+
- Organization Switch
81
+
4. Grant the following API authorizations under Organization APIs.
Take note of the **Client ID** and **Client Secret** of the application you created.
103
+
104
+
### Setting up IAM-CTL
26
105
27
106
Follow the steps below to learn how you can configure IAM-CTL.
28
107
@@ -49,27 +128,6 @@ Follow the steps below to learn how you can configure IAM-CTL.
49
128
iamctl -h
50
129
```
51
130
52
-
5.[Register an M2M application]({{base_path}}/guides/applications/register-machine-to-machine-app/){:target="_blank"} with the following API authorization and take note of client ID and client secret.
1. Create a new folder and navigate to it from your terminal.
@@ -85,8 +143,10 @@ Follow the steps below to learn how you can configure IAM-CTL.
85
143
!!! note
86
144
If you have multiple environments, get a copy of the `env` folder and rename it according to the environments you have.
87
145
88
-
4. Open the **serverConfig.json** file and provide the client ID and client secret of the M2M application you created earlier.
146
+
4. Open the **serverConfig.json** file and provide the client ID and client secret of the application you created earlier.
89
147
148
+
To propagate resources between root organizations, provide the details of the M2M application created in the root organization and the organization details.
149
+
90
150
=== "serverConfig.json"
91
151
92
152
```json
@@ -109,6 +169,31 @@ Follow the steps below to learn how you can configure IAM-CTL.
109
169
}
110
170
```
111
171
172
+
To propagate resources between child organizations, provide the details of the application created in the child organization and the child organization details.
0 commit comments