AD sync with user accounts disabled by default?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-29-2014 09:00 AM
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
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
Labels:
- Labels:
-
Archive
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2014 07:57 AM
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>
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
