API get user group
Hi,I'm trying to get an user group using VB API.I'm using function ESB_GetUser, I tried the fields type, name, description....Name returns the username and not the group name. AppName and DbName do n ot return any value. However I do not have any error...Any idea? A bug maybe? Is it possible to do a such thing with API?Thanks for your help--------------------Sub ESB_GetUser()Dim sts As LongDim User As StringDim str_group As StringDim UserInfo As ESB_USERINFO_TDim str_type As String * ESB_TYPE_USERDim str_name As String * ESB_USERNAMELENDim str_description As String * ESB_DESCLENDim str_appname As String * ESB_APPNAMELENDim str_dbname As String * ESB_DBNAMELENDim str_access As String'Starting an API connectionCall ESB_InitCall ESB_AutoLogin(cst_application)User = "my_user"'************************' Get User Info structure'************************sts = EsbGetUser(hCtx, User, UserInfo)str_name = UserInfo.namestr_type = UserInfo.Typestr_appname = UserInfo.AppNamestr_dbname = UserInfo.DbNamestr_access = UserInfo.Accessstr_description = UserInfo.Description'DeconnectingCall ESB_LogoutCall ESB_Termmsg = "User " & User & " belongs to " & str_description & " group."res = MsgBox(msg, vbOKOnly)End Sub
Please check the PDK APIs for what APIs are available. Note that a user can belong to more than one group. They can define one of their groups as their default group. There is an API to get the default group for a user.
Similar Messages
-
Sharepoint 2010 get User Groups from specific site
Hello,
I was able to get all User groups from entire site Collection.
But instead of getting user groups from entire site, I want read user groups only from one specified sub site.
Please help!
ThanksAssuming you have an SPWeb object named "web", example:
SPSite site = new SPSite(http://yourdomain/sites/yoursite);
SPWeb web = site.OpenWeb("mysubsite/subsbusite");
web.Groups will return a collection of SPGroup objects for the current subsite. If this subsite inherits permissions from a parent site (web.HasUniquePerm = False), the list is the same as the Groups property of the parent site.
SPWeb.Groups:
http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spweb.groups(v=office.15).aspx
SPGroup:
http://msdn.microsoft.com/en-us/library/office/microsoft.sharepoint.spgroup(v=office.15).aspx
You would be better results by posting coding questions in "SharePoint 2010 - Development and Programming" instead of "SharePoint 2010 - General Discussions and Questions".
Mike Smith TechTrainingNotes.blogspot.com
Books:
SharePoint 2007 2010 Customization for the Site Owner,
SharePoint 2010 Security for the Site Owner -
Hi,
How can I get current users groups since the User and Group objects are marked as deprecated.
Right now I'm doing the folowing:
User user = request.getResourceResolver().adaptTo(User.class);
Iterator<Group> groupsIterator = user.memberOf();
Is there an other way to do it properly and without using deprecated methods/objects?
Regards,
PiotrHi devPl83,
Assuming you are on CQ5.5+, you should use org.apache.jackrabbit.api.security.user.User
http://dev.day.com/docs/en/cq/current/javadoc/com/day/cq/security/User.html:
Cheers -- David -
Hi All,
How can I obtain the user group by using c# code ?
when user is log in I want to show on textbox the user name and the group privilege.
TnxThere are a couple of pictures in the following thread, use the same methods and properties in your c# code:
http://forums.ni.com/t5/NI-TestStand/get-group-name-of-currently-logged-in-user/m-p/595452/highlight...
Beginner? Try LabVIEW Basics
Sharing bits of code? Try Snippets or LAVA Code Capture Tool
Have you tried Quick Drop?, Visit QD Community. -
ISE / Active Directory: issue to get users group
Hello,
We have a strange issue:
- ISE 1.2 patch 8
- no WLC, autonomous AP
In authentication, we check Wireless IEEE 802.11 (radius) and cisco-av-pair (ssid), then we use AD.
We have 3 SSIDs, so 3 rules, one DATA, one GUEST, one for TOIP.
In one more rules to grant authentication from APs to register in WDS: user in local database.
In authorization, we check cisco-av-pair (ssid) and AD user group, then we permit access.
(so 3 rules), and one more to authorise the internal base for WDS.
We have something strange:
- sometimes users can connect but later they can't: in the logs, the authorization rejects the user because the AD Group is not seen.
Exemple:
1- OK:
Authentication Details
Source Timestamp
2014-05-15 11:43:19.064
Received Timestamp
2014-05-15 11:43:19.065
Policy Server
radius
Event
5200 Authentication succeeded
All the GROUPS of user are seen:
false
AD ExternalGroups
xx/users/admexch
AD ExternalGroups
xx/users/glkdp
AD ExternalGroups
x/users/gl revue écriture
AD ExternalGroups
xx/users/pcanywhere
AD ExternalGroups
xx/users/wifidata
AD ExternalGroups
xx/informatique/campus/destinataires/aa informatique
AD ExternalGroups
xx/informatique/campus/destinataires/aa entreprises et cités
AD ExternalGroups
xx/informatique/campus/destinataires/aa campus
AD ExternalGroups
xx/users/aiga_creches
AD ExternalGroups
xx/users/admins du domaine
AD ExternalGroups
xx/users/utilisa. du domaine
AD ExternalGroups
xx/users/groupe de réplication dont le mot de passe rodc est refusé
AD ExternalGroups
xx/microsoft exchange security groups/exchange view-only administrators
AD ExternalGroups
xx/microsoft exchange security groups/exchange public folder administrators
AD ExternalGroups
xx/users/certsvc_dcom_access
AD ExternalGroups
xx/builtin/administrateurs
AD ExternalGroups
xx/builtin/utilisateurs
AD ExternalGroups
xx/builtin/opérateurs de compte
AD ExternalGroups
xx/builtin/opérateurs de serveur
AD ExternalGroups
xx/builtin/utilisateurs du bureau à distance
AD ExternalGroups
xx/builtin/accès dcom service de certificats
RADIUS Username
xx\cennelin
Device IP Address
172.25.2.87
Called-Station-ID
00:3A:98:A5:3E:20
CiscoAVPair
ssid=CAMPUS
ssid
campus
2- NO OK later:
Authentication Details
Source Timestamp
2014-05-15 16:17:35.69
Received Timestamp
2014-05-15 16:17:35.69
Policy Server
radius
Event
5434 Endpoint conducted several failed authentications of the same scenario
Failure Reason
15039 Rejected per authorization profile
Resolution
Authorization Profile with ACCESS_REJECT attribute was selected as a result of the matching authorization rule. Check the appropriate Authorization policy rule-results.
Root cause
Selected Authorization Profile contains ACCESS_REJECT attribute
Only 3 Groups of the user are seen:
Other Attributes
ConfigVersionId
5
Device Port
1645
DestinationPort
1812
RadiusPacketType
AccessRequest
UserName
host/xxxxxxxxxxxx
Protocol
Radius
NAS-IP-Address
172.25.2.80
NAS-Port
51517
Framed-MTU
1400
State
37CPMSessionID=b0140a6f0000C2E15374CC7F;32SessionID=radius/189518899/49890;
cisco-nas-port
51517
IsEndpointInRejectMode
false
AcsSessionID
radius/189518899/49890
DetailedInfo
Authentication succeed
SelectedAuthenticationIdentityStores
AD1
ADDomain
xxxxxxxxxxx
AuthorizationPolicyMatchedRule
Default
CPMSessionID
b0140a6f0000C2E15374CC7F
EndPointMACAddress
00-xxxxxxxxxxxx
ISEPolicySetName
Default
AllowedProtocolMatchedRule
MDP-PC-PEAP
IdentitySelectionMatchedRule
Default
HostIdentityGroup
Endpoint Identity Groups:Profiled:Workstation
Model Name
Cisco
Location
Location#All Locations#Site-MDP
Device Type
Device Type#All Device Types#Cisco-Bornes
IdentityAccessRestricted
false
AD ExternalGroups
xx/users/ordinateurs du domaine
AD ExternalGroups
xx/users/certsvc_dcom_access
AD ExternalGroups
xx/builtin/accès dcom service de certificats
Called-Station-ID
54:75:D0:DC:5B:7C
CiscoAVPair
ssid=CAMPUS
If you have an idea, thanks so much,
Regards,To configure debug logs via the Cisco ISE user interface, complete the following steps
:Step 1 Choose Administration > System > Logging > Debug Log Configuration. The Node List page appears, which contains a list of nodes and their personas.
You can use the Filter button to search for a specific node, particularly if the node list is large.
www.cisco.com/en/US/docs/security/ise/1.0/user_guide/ise10_logging.html#wp1059750 -
How to get logged-in user/group information in WebLogic Portal 10.3.2
Hi bros.
I have a codesnipet to get information about user who actually logged in weblogic portal:
import javax.security.auth.Subject;
import javax.security.auth.login.LoginException;
import com.bea.p13n.security.Authentication;
import com.bea.portal.tools.security.user.*;
public class UGMSummary {
private static final String username = "weblogic";
private static final String password = "webl0gic";
public UGMSummary(){
public void test(){
try {
Subject tmp = Authentication.authenticate(username, password);
//PolicyItem pi = new PolicyItem();
//System.out.println("######## " + Authentication.getCurrentSubject().toString());
UserIDBuilder builder = new UserIDBuilder();
UserID uid = builder.createResourceID();
System.out.println("######## Admin ? " + Authentication.isAdministrator(tmp));
System.out.println("######## Anonymous ? " + Authentication.isAnonymous(tmp));
System.out.println(" ######## " + uid.getUserName());
} catch (LoginException e) {
System.out.println(e.getMessage());
//e.printStackTrace();
}Some println commands above are used to mark in console. I can ensure that there is an user (admin) logged in weblogic system by executing command: Authentication.isAdministrator(tmp);
Output of codesnipet above is:
######## Admin ? true
######## Anonymous ? false
######## nullMy problem is impossible to use UserID object to get username of weblogic user. Output of command: uid.getUsername() is: null
Somebody tell me why my code doesn't work though it can authenticate an user.
Thank in advance.
ps:
Some Javadoc for UserID can be found here:
http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/index.html
http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/index.htmlHi, Kevin.
I'm glad to see your response again. I found some interesting information from your recommendation link. At this time, I know that impossible to get users/groups information by using DelegatedAtnProxyManagerControlFacade (ref: http://download.oracle.com/docs/cd/E15919_01/wlp.1032/e14255/com/bea/portal/tools/ugm/controls/DelegatedAtnProxyManagerControlFacade.html) interface.
But, I dont know how to get an instance of an object that implemented this interface. My friend give me a codesnipet that shown the way to get a DelegatedAtnProxyManagerControlFacade by using this codesnipet in a GlobalController:
try
DelegatedAtnProxyManagerControlFacade delegatedAtnProxyManager = (DelegatedAtnProxyManagerControlFacade)getControl(DelegatedAtnProxyManagerControlFacade.class);
catch (PolicyRefException e)
reportPolicyRefException(e);
catch (OperationNotSupportedException e)
reportOperationNotSupportedException(e);
}But I dont know what global.GlobalController actually is ?
I've asked Google for information but I got nothing. Do you know any documentation that describes about this controller ?
Thanks, regards !
Doubt_Man. -
How to get user attributes from LDAP authenticator
I am using an LDAP authenticator and identity asserter to get user / group information.
I would like to access LDAP attributes for the user in my ADF Taskflow (Deployed into webcenter spaces).
Is there an available api to get all the user attributes through the established weblogic authenticator provider or do i have to directly connect to the LDAP server again?
Any help would be appreciatedHi Julián,
in fact, I've never worked with BSP iViews and so I don't know if there is a direct way to achieve what you want. Maybe you should ask within BSP forum...
A possibility would be to create a proxy iView around the BSP iView (in fact: before the BSP AppIntegrator component) which reads the user names and passes this as application params to the BSP component. But this is
Beginner
Medium
Advanced
Also see http://help.sap.com/saphelp_nw04/helpdata/en/16/1e0541a407f06fe10000000a1550b0/frameset.htm
Hope it helps
Detlev -
How do you resolve an issue when creating groups on a Mac Mini Server when this error message appears.
"Unable to get Users & Groups State, The Open Directory master was created, but a problem was encountered trying to refresh the state of the server. Check log files for more info."Most likely, the Server was not configured correctly - DNS is a common issue, If DNS is not configured properly, OD will not be happy. You can run
sudo changeip -checkhostname
in Terminal to see of DNS is up and running.
Here's a great tutorial (not mine) for setting up OS X Servers. The page says it's for a typical school environment, but it can be applied in many other environments.
http://www.wazmac.com/servers_network/fileservers/osxserver_setup/index.htm
hth
Jeff -
Get all Groups for current user
Hi I try to get all groups for the current logged on user. This is what I do:
First I try to search with the IGruopSearchFilter to obtain all unique Group IDs. I always get an proxy error by doing this, maybe the query is to much.
Then I want to use the method group.isUserMember(user.getUniqueID() to check whether the user is a member of that group or not.
Is there a better way to obtain all groups for a user (without using a query IGroupSearchFilter)?
Thanks ahead for your help.
BurkhardtBurkhadrt,
have you tried this?
https://media.sdn.sap.com/javadocs/preNW04/SP2/60_sp2_javadocs/ume/com/sap/security/api/IUser.html#getParentGroups(boolean)
This should give you an iterator for all groups the given user is assigned to.
Hope it helps... and if so:
if (helpful) {
points++
Regards,
Dominik -
How to get the groups info for user
Hi guys i am new to ALUI..
i am trying to do some enhancement.
i want to know how to get the information of the users group and the group details using the IDK API?
Can sombody share some code?Hello,
You are welcome. Here is one way of get what you want:
1) get all groups id's
IPortletContext - >IRemoteSession -> IUserManager - > getCurrentUserGroups() -> int []
2) get details about group
IRemoteSession.getObjectManager(ObjectClass.UserGroup ) ->
cycle over int []: {
IObjectManager -> querySingleObject(comminity id) -> IObjectQueryRow -> getName()
Because you are going to use PRC and make SOAP calls to portal don't forget setup WS to pass token to portlet (check WS settings)
Edited by Bryazgin at 05/29/2008 7:48 PM -
Get the user group in a JSP portlet
Hi,
I'm developping a JSP portlet and i'd like to know how to get the group of the user ?
(the JSP will display URL links only if a user belongs to a specific group).
I've seen the objet ProviderUser but it doesn't have methods wich give the user groups...
Can you help me,
Thank you
FranckProviderUser or any other Java API for that matter in PDK cannot
give user's group information. One way to get the User group is
to make to make use of Portal's PL/SQL Security API Packages,
through JDBC calls.
Example PL/SQL Code:
l_boolean boolean;
l_boolean := wwsec_api.is_user_in_group
p_person_id => wwsec_api.id ('USER1'),
p_group_id => wwsec_api.group_id ('GROUP1')
Note : Replace USER1, GROUP1 with your own values.
-aMJAD -
Get user statistic by abap user group?
Hi,
I need to get number of users visited portal by abap user group?
Is it possible to do so using portal activity reports?
Activity report has only option for user separating by abap rols.
great thanks for all.
Edited by: Evgeny Borzykh on Aug 21, 2009 12:31 PMNot quite the intent I think.
If we view the hierarchy of nodes as a way to manage a hierarchy of resources specific to your program (think of hierarchical contexts) then I want to be able to put/get objects by key (and not just strings as keys). I don't see any API for this so I would propose augment set/getUserData with getResources() that returns an observable map unless there is another way to do this now. -
Get All group from LCES using Livecycle java API
Hello ,
Can anyone told me how i can retrieve all the groups that exist in my livecyle using JAVA API.
Some method who return all groups ??
Thanks!First Thank you for your answer
I tried this part
//Set connection properties required to invoke LiveCycle ES
Properties connectionProps = new Properties();
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_DEFAULT_EJB_ENDPOINT, "jnp://test:1099");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_TRANSPORT_PROTOCOL,Service ClientFactoryProperties.DSC_EJB_PROTOCOL);
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_SERVER_TYPE, "JBoss");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_USERNAME, "administrator");
connectionProps.setProperty(ServiceClientFactoryProperties.DSC_CREDENTIAL_PASSWORD, "password");
ServiceClientFactory scf = ServiceClientFactory.createInstance(connectionProps);
DirectoryManager directoryManager = new DirectoryManagerServiceClient(scf);
PrincipalSearchFilter psf = new PrincipalSearchFilter();
psf.setPrincipalType(Principal.PRINCIPALTYPE_GROUP); //Recommended - refines the search to a User or Group
psf.setRetrieveOnlyActive(); // Recommended - returns only ative users/groups and not obsolete/deleted users/groups
List<Principal> resultList = directoryManager.findPrincipals(psf);
System.out.println("Done");
and when I check the result of my list I find incomprehensible informations.
So when I debug the code , my list contains little information.
NB : my LDAP contains hundreds of groups.
Any suggestion
Any code Source. -
SAB BO 4.1 SP1
Does it have an RESTful API to schedule a Webi report with the parameter to specify a group of users ("Schedule For" to "Schedule for specified users and user groups" with one or more users/groups)?Hello Ricardo,
have you try a call like this one ?
<schedule>
<name>"test"</name>"
<format type=\"webi\"/>
<destination>
<inbox>
<to>userId1,userId2,userId3,groupId1,groupId12</to>
</inbox>
</destination>
</schedule>
Regards
Stephane -
Hello all,
I am using LabVIEW 8.0 PDS.
I created a new local domain called "MyDomain" in the "NI Domain Account Manager" . I added a new User called "MyUser" and a new group called "Maintenance". I set "MyUser" to be a member of the "Maintenance" group. Then, I configured LabVIEW to invoke the login dialog at start-up in order to log "MyUser" with the correct password.
I would like to get the group name of the current user logged programmatically in a VI. I tried with the VI Server >> Application >> Security properties and methods and also with the properties and methods of the NI Security Class but it seems to be not so simple as I believed at start.
I do not find any informations or KB on this (all the documents I found deal with LV DSC or TestStand).
The final goal is to be able to manage a list of user for my application. Each user is a member of a group ("Administrator", "Operator", "Maintenance") and depending on the group, the user can or cannot access to some parts of the application.
Thanks for your help.
Matthieu
EurilogicRe,
Here is a screenshot of this functions...
If you really own LV DSC 8.2 the best thing to do is to reinstall it.
Regards,
Message Edité par Richard K. le 04-02-2007 04:00 AM
Richard Keromen
National Instruments France
#adMrkt{text-align: center;font-size:11px; font-weight: bold;} #adMrkt a {text-decoration: none;} #adMrkt a:hover{font-size: 9px;} #adMrkt a span{display: none;} #adMrkt a:hover span{display: block;}
>> Découvrez, en vidéo, les innovations technologiques réalisées en éco-conception
Attachments:
security.jpg 3841 KB
Maybe you are looking for
-
Only require data back up from lost blackberry curve
hi.. i lost my blackberry curve 8520 yesterday and its protective appplication is not on.i know that i cant get it but only i want is my contacts.please help me as these is very much important. Details of phone are: blackberry curve 8520eta00108/200
-
HTML + JQuery (CSOM) to add multiple item to a Sharepoint list and get their IDs
Hi everyone. I try to use HTML + JQuery in CEWP to build some sort of analog of InfoPath's repeating table in order to be able to insert multiple items in a Sharepoint list using CSOM. The current task is to get the IDs of inserted items (in order to
-
How to switch to another page when clicking a button
I have a main frame consits of many button.What I need to do when click a button,it switch to another page? Thanx....
-
Was anyone succesful in sending sms with adress book through motorola phone
Hello, was anyone? There is here and there posts one the topic but it is unclear to me is there a general solution or just people succesful? What is weird that apple official list of supported phones has my motorola v535 phone. It is detected correct
-
5.1.3 Restoring bookmarks bar and menu ?
I'm running Safari 5.1.3 on imac on 10.7.3 I just synced my ipad to computer. On my bookmarks bar on the ipad I had only 2 bookmarks. On the computer I had a whole bunch. Same with bookmarks menu. After the sync, on my computer, it had deleted all th