Desktop version

Main > Forum > 1C:Enterprise Platform > 1C:Enterprise – Business applications platform > To attract the users registered in Active Directory

Forum

Search UsersRules
To attract the users registered in Active Directory
#1
Just came
Points:: 0
Joined:: Nov 22, 2013

There is one feature that we want to offer our customers

in SmallBusiness application.

For example, available in many users registered in Active Directory.

By our application, which is active from those users automatically get

loaded into 1C database.

Then periodically active/deactive control're done.(synchronization)

I'd appreciate if anyone can help.

Profile
#2
Guest
Points::
Joined::

Hello, Veli.

You can grant an access to infobase through Operating system authentication. This allows to use user names in domain. Please see an example:

Profile
#3
Just came
Points:: 0
Joined:: Nov 22, 2013

First of all thank you for your response.

 We can use the method you describe.

 But the procedure in example, will have to repeat for each user.

 So, is it possible to add all the users en masse?

Profile
#4
Guest
Points::
Joined::

You can create a data processor or web service or use COM object for that. See examples in Users subsystem of 1C:Subsystems Library.

Profile
#5
Just came
Points:: 0
Joined:: Oct 30, 2013

You need some of this:

Code
Function ReceiveDomainUsers(DomainName, GroupName)
   
   Result = New Array();
   objNameSpace = "";
   Try
      objNameSpace =  GetCOMObject("WinNT://" + TrimAll(DomainName) + "/" 
          + TrimAll(GroupName) +", Group");
      For each item in objNameSpace.Members() Do 
           Result.Add(Item.Name);
        EndDo;
     Except
        Result.Clear();
     EndTry;
     
     Return Result;
      
      
EndFunction

Yes?
<deleted as rules violation> ©

Profile
#6
Just came
Points:: 0
Joined:: Nov 22, 2013

Thanks both of you...

Profile
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)



© 1C LLC. All rights reserved
1C Company respects the privacy of our customers and visitors
to our Web-site.