Home > Contents > Index > 
Template Tags TOC | Alpha TOC | Tag Family TOC | Purpose TOC | Annotated TOC | Index 
dir:addgroupmember
Adds a member to a group
Syntax
<dir:addgroupmember name="group" member="member entry"/>Parameters
name (required)- Unique identifier for the name of the entry to which members are being added. The value is relative to the baseDN property.
member (required)- The name of the entry to add as a member (usually, but not required to be, a user). The value is relative to the baseDN property, but is changed into the fully qualified distinguished name prior to adding as a value to the
CS.Property.dir.uniquememberattribute.
Error Numbers
The possible values of
errnoinclude:
Description
This tag adds a member to a group, but does not add a child to a group. The API implementation, not the client code, is responsible for checking that the member is a valid, existing distinguished name. If the specified entry is already a member, nothing is done.
In most SPIs, this entails adding the specified user's distinguished name to the set of values of the specified group's
uniquememberattribute.If the
CS.Property.dir.referentialIntegrityproperty is turned on, theCS.Property.dir.member attribute(backlink) of the user is also be updated, if implemented by the SPI (e.g., the value in the property file is non-empty).Example
<dir:addgroupmember name='<%=ics.GetVar("browser")%>' member='<%=ics.GetVar("nametoadd")%>'/> <ics:if condition='<%=ics.GetErrno()==0%>'> <ics:then> <p><b> Successful adding group=<ics:getvar name='browser'/> to user=<ics:getvar name='nametoadd'/> </b></p> </ics:then> <ics:else> <p><b>Could not add acl=<ics:getvar name="browser"/> to user, <ics:getvar name="nametoadd"/>,error=<ics:geterrno/></p></b> </ics:else> </ics:if>
Home > Contents > Index > 
Oracle JSP Tag Reference
Copyright (c) 2013, 2016, Oracle and/or its affiliates. All rights reserved.