Updates an existing SCIM connection. This method wraps the update-connection endpoint. If attempting to modify the scim_group_implicit_role_assignments the caller must have the update.settings.implicit-roles permission on the stytch.organization resource. For all other fields, the caller must have the update permission on the stytch.scim resource. SCIM via the project's RBAC policy & their role assignments.
Update SCIM Connection
Method parameters
connection_id* string
identity_provider string
display_name string
scim_group_implicit_role_assignments array[objects]
Response fields
request_id string
status_code int
connection object
import { Text, TouchableOpacity, View } from 'react-native';
import { useStytchB2BClient } from '@stytch/react-native/b2b';
export const UpdateSCIMConnection = () => {
const stytch = useStytchB2BClient();
const updateSCIMConnection = () => {
stytch.scim.updateConnection({
connection_id: 'scim-connection-test-cdd5415a-c470-42be-8369-5c90cf7762dc',
display_name: 'Updated SCIM connection name',
});
};
return (
<View>
<TouchableOpacity onPress={updateSCIMConnection}>
<Text>Update SCIM Connection</Text>
</TouchableOpacity>
</View>
);
};
RESPONSE
200
{
"request_id": "request-id-test-b05c992f-ebdc-489d-a754-c7e70ba13141",
"status_code": 200,
"connection": {
"organization_id": "organization-test-07971b06-ac8b-4cdb-9c15-63b17e653931"
"connection_id": "scim-connection-test-cdd5415a-c470-42be-8369-5c90cf7762dc"
"status": "active",
"display_name": "My SCIM Connection"
"identity_provider": "okta"
"base_url": "https://test.stytch.com/v1/b2b/scim/scim-connection-test-cdd5415a-c470-42be-8369-5c90cf7762dc"
"bearer_token_last_four": "sdko"
"bearer_token_expires_at": "2029-03-20T21:28:28Z"
},
}