User (ContentType)

From Sense/Net 6.0 Wiki

Jump to: navigation, search

With the User ContentType you can store users in the Identity Management System of Sense/Net 6.0.

<ContentType name="User" parentType="GenericContent" handler="SenseNet.ContentRepository.User" xmlns="http://schemas.sensenet.hu/SenseNet/ContentRepository/ContentTypeDefinition">
  <Title>User</Title>
  <Description>A user of the portal system</Description>
  <Icon>User</Icon>
  <Fields>
    <Field name="Name" type="ShortText">
      <Title>Name</Title>
      <Description>User name</Description>
      <Configuration>
        <Compulsory>true</Compulsory>
      </Configuration>
    </Field>
    <Field name="Enabled" type="Boolean">
      <Title>Enabled</Title>
      <Description>User account in enabled</Description>
    </Field>
    <Field name="Domain" type="ShortText">
      <Title>Domain</Title>
      <Description>The domain of the user</Description>
      <Configuration>
        <ReadOnly>true</ReadOnly>
      </Configuration>
    </Field>
    <Field name="Email" type="ShortText">
      <Title>E-mail</Title>
      <Description>The e-mail of the user</Description>
    </Field>
    <Field name="FullName" type="ShortText">
      <Title>Full name</Title>
      <Description>Full name of the user (e.g. John Smith)</Description>
    </Field>
    <Field name="Password" type="Password">
      <Title>Password</Title>
      <Description>User password</Description>
      <Bind property="PasswordHash" />
      <Configuration>
        <Compulsory>true</Compulsory>
        <ReenterTitle>Re-enter password</ReenterTitle>
        <ReenterDescription>Re-enter password</ReenterDescription>
      </Configuration>
    </Field>
    <Field name="ClientCert" type="LongText">
      <Title>Client certificate</Title>
      <Description>Client certificate of the user as text (optional)</Description>
    </Field>
  </Fields>
</ContentType>

On this picture below you can see the new User creation dialog box of the Content Explorer.

Image:User_contenttype.jpg

[edit] Functioning in details

  • Is enabled: By checking this box in, you will enable the user to use the system.
Information:
Due to some technical issues it is impossible to delete a user if that user has already created some content. However, you can make the user inactive, and this solution might work almost all the time. You can make a user inactive by unchecking Enable checkbox on the user's datasheet in Content Explorer.

If you try to delete such a user, Content Explorer will throw an exception, which exception lacks any useful information at the moment.

We are working on the problem.


[edit] Related articles

  • Click here to find out the possible security settings of a user in the Elements of security section.
Personal tools