# <profile:createProfile> Tag

The <profile:createProfile> tag creates a new user or group profile, along with any designated successors for property inheritance. Use this tag in conjunction with the <ugm:createUser> tag to create a profile for a new user.

You can also create a profile for a user or group in an authentication provider that does not allow read access. When the user logs in, the user is paired with the profile.

Note: It is possible (but not recommended) to store an identical username or group name in more than one authentication provider. For example, user "foo" can reside in the default WebLogic Server LDAP provider and in an external RDBMS provider. In that case, WebLogic Portal uses only one user profile for user "foo."

## Syntax

<tagName attribute="value" />

## Attributes

profileKey

Required (String) - The key (name of a user or group) for the profile to create. Example: "<%=username%>".

successorKey

Optional (String) - The key for the profile's successor. Example: "<%=defaultGroup%>".

scope

Optional (String) - The HTTP scope of the new profile. Pass "request" or "session" as the values. Defaults to session.

groupOnly

Optional (Boolean) - When set to true, a group profile named by the profileKey is created rather than a user profile. No successor will be created when this value is true. Defaults to false.

profileId

Optional (String) - A variable name from which the new profile is available, as a com.bea.p13n.usermgmt.profile.ProfileWrapper.

successorId

Optional (String) - The ID of the profile's successor, as a com.bea.p13n.usermgmt.profile.ProfileWrapper.

result

Optional (Integer) - A variable name for the result of the operation.

Possible values:

- ProfileManagementTag.CREATE_PROFILE_OK
- ProfileManagementTag.CREATE_PROFILE_FAILED

## Example

    <profile:createProfile profileKey="<%=username%>" profileId="profileId" />

Related Topics

<ugm:createUser> Tag

<profile:getProfile> Tag