cancel
Showing results for 
Search instead for 
Did you mean: 

AD sync with user accounts disabled by default?

fowlkes
Champ on-the-rise
Champ on-the-rise
We are evaluating Alfresco Community (4.2e version) for our college.  We have AD sync working well but we'd like to know how you change the default setting for newly synced AD -> Alfresco accounts to be automatically disabled until an admin enables them?

Sorry if this is a newby question.  If so, please send me to another URL for an answer.  I have searched but not found a good answer on the forums yet.

Thanks much!

Keith Fowlkes
1 REPLY 1

angelborroy
Community Manager Community Manager
Community Manager
As far as I know Alfresco can't be configured so.

You can implement your own behavior "onCreateNode" listening to PERSON content type.

Same incomplete sample code:

<java>

        this.policyComponent.bindClassBehaviour(
                OnCreateNodePolicy.QNAME,
                ContentModel.TYPE_PERSON,
                new JavaBehaviour(this, "onCreateNode"));

    public void onCreateNode(ChildAssociationRef childAssocRef) {
            NodeRef personNodeRef = childAssocRef.getChildRef();
            nodeService.addAspect(personNodeRef, ContentModel.ASPECT_PERSON_DISABLED, null);
    }

</java>
Hyland Developer Evangelist