Skip to main content

<AsgardeoOrganizationProfile />

You're reading Identity & Access Management 7.0.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

<AsgardeoOrganizationProfile> displays the details of the organization that the user is currently acting in, using the WSO2 Identity Server Nuxt SDK (@asgardeo/nuxt).

Overview​

<AsgardeoOrganizationProfile> reads currentOrganization from useOrganization() and renders its details in a card.

The SDK doesn't provide a route that updates an organization. To let users edit the name or description, set editable and pass your own onUpdate handler.

note

<AsgardeoOrganizationProfile> must render inside <AsgardeoRoot>.

Usage​

The component is auto-registered, so you don't need to import it.

Basic usage​

<template>
<AsgardeoOrganizationProfile />
</template>

Editable profile​

<script setup lang="ts">
const onUpdate = async (payload: Record<string, unknown>) => {
await $fetch('/api/my-org', { method: 'PATCH', body: payload });
};
</script>

<template>
<AsgardeoOrganizationProfile title="Team settings" editable :on-update="onUpdate" />
</template>

Props​

PropTypeDefaultDescription
titlestring'Organization Profile'Title of the card.
editablebooleanfalseWhether the user can edit the organization's details.
onUpdate(payload: Record<string, unknown>) => Promise<void>–Called when the user saves an edit, with the changed field, such as { name } or { description }.
classNamestring''CSS class for the root element.

Slots​

SlotSlot propsDescription
default{ organization }Replaces the built-in profile view.
fallback–Content to render when there's no current organization.

Was this page helpful?