<@U04UQ68083H> are there any examples of actions w...
# ory-copilot
f
@chilly-king-10285 are there any examples of actions which can be defined to update user Profile in ory after oidc login
c
A message from kapa.ai
Yes, Ory provides a feature called "Ory Actions" that can be used to define custom behaviors based on user-related events. For instance, when a user signs in using OIDC (OpenID Connect), you can use Ory Actions to enrich your CRM with data from the social sign-in provider. This could involve updating user profile information in your database. However, the specific examples provided in the knowledge sources are more general and do not provide a detailed example of updating a user profile after OIDC login. The examples given include sending a welcome email to the user or updating user information in your database when a user signs in with a password. For more detailed examples or specific use cases, you may want to refer to the Ory documentation or community resources. Sources: - [Triggers based on authentication methods](https://www.ory.sh/docs/kratos/hooks/configure-hooks#triggers-based-on-authentication-methods) - [Actions in Ory Identities](https://www.ory.sh/docs/kratos/hooks/configure-hooks#actions-in-ory-identities)
f
@chilly-king-10285 how do I add action for updating profile after linking social ?
c
A message from kapa.ai
The knowledge sources provided do not contain specific instructions or code examples on how to add an action for updating a profile after linking a social account in Ory. However, they do mention the possibility of customizing the behavior of the system by defining actions based on the authentication method used. In general, you would need to define an action that triggers when the
oidc
method is used, which is the method for linking and unlinking from social sign-in providers such as Google or Facebook. This action could then perform the necessary steps to update the user's profile. For detailed instructions and code examples, you should refer to the Ory documentation or community resources. Sources: - [Triggers based on authentication methods](https://www.ory.sh/docs/kratos/hooks/configure-hooks#triggers-based-on-authentication-methods) - [Actions in Ory Identities](https://www.ory.sh/docs/kratos/hooks/configure-hooks#actions-in-ory-identities)