Lastmodifydate attribute in UME schema
I am using SPML interface in UME to search users in UME. Is there any way to give filter to fetch users that are modified after a given timestamp? 'lastmodifydate' attribute in UME schema fetch value for account creation date and not account modify date.
Do these sections of the manual not describe it?
Overview of dimensions
CREATE DIMENSION
Similar Messages
-
How to add attribute to UME and how to retrive the attribute value
Hi Gurus,
I have developped an application that retriving the data from back end for that we need to give input values .
I have got the Logged user from the Iuser But Sales Organization of User [from user profile] and Brand value [from user profile] I want these input put values need to pass as a input .
For this how can get the sales org and Brand value.
Give me suggestions for this or how to pass attributes to UME and how to capture it.
Advance thanks.
thanks
Lohi.Check if there are any available function modules for this functionality. One of the FM that comes to my mind is:
a) BAPI_USER_GET_DETAIL
Check with your SD guys , if there exists any such function module.
Regards,
Subramanian V. -
How to add custom attributes to UME
hi gurus,
I have developped an appliation in that I want add custom attributes to UME for the sake of retriving the BrandType.
Please give me suggestion how to do this.
Thanks in adance.
LohiHi Lohi,
UME setup
1) go to Configuration tool (C:\usr\sap\J2E\JC02\j2ee\configtool\consoleconfig.bat)
2) For Global server configuration->services->com.sap.security.core.ume.service define property ume.admin.addattrs as BU_PARTNER and for ume.admin.self.addattrs as <empty>. (to set value select entry, input value in Value field and click Set)
3) Click Apply changes button on the toolbar.
4) Restart server.
5) Login to http://<server_name>:<server_port>/useradmin/index.jsp and define BU_PARTNER property.
Code:
try {
final IWDClientUser wdUser = WDClientUser.getCurrentUser();
final IUser user = wdUser.getSAPUser();
final String[] attribute = user.getAttribute(
"com.sap.security.core.usermanagement",
"BU_PARTNER");
if( attribute==null || attribute.length == 0 || !Utils.isNotEmpty(attribute[0]) ) {
wdComponentAPI.getMessageManager().reportMessage(...);
return;
} else {
buPartner = attribute[0];
} catch (final WDUMException e) {
wdComponentAPI.getMessageManager().reportMessage(...);
Best regards, Maksim Rashchynski. -
Hi,
I have defined some custom attributes in UME.I created a user creation application which takes parameters from another application. I am using the below code to create the user.
===
IUserMaint newUser = UMFactory.getUserFactory().newUser(uid);
newUser.setFirstName(preq.getParameter("firstname"));
====
my question is How do I update custom attributes that I have defined in UME.
Any help on this is greatly appreciated.
Vasu Pabbaraju.Venkata,
I'm sorry I can't help you with your problem but maybe you can help me with mine....I cant even get the custom attributes to appear. The task processes a BOR but i've tried with UM attributes with no luck. Can you see an error here?
<ItemType name="uwl.task.webflow.SAP_R3_HumanResources_test" connector="WebFlowConnector" defaultView="DefaultView" defaultAction="launchSAPAction" executionMode="default">
<ItemTypeCriteria systemId="SAP_R3_HumanResources" externalType="TS95100025" connector="WebFlowConnector"/>
<CustomAttributes>
<CustomAttributeSource id="UM" objectIdHolder="creatorId" objectType="user" cacheValidity="final">
<Attribute name="lastname" type="string" displayName="Last Name" />
</CustomAttributeSource>
</CustomAttributes>
<Actions>
<Action name="launchSAPAction" userDecision="no" handler="SAPTransactionLauncher" referenceBundle="launch_sap"/>
</Actions>
</ItemType>
Any help appreciated
Thanks
Tahir -
Patterns for attribute in a schema?
How do you set the patterns value for an attribute in a schema file?
The XML representation for a pattern schema component is a pattern element information item. The correspondences between the properties of the information item and properties of the component are as follows:
XML Representation Summary: pattern Element Information Item
<pattern
id = ID
value = string
fixed = boolean : false
{any attributes with non-schema namespace. . .}>
Content: (annotation?)
</pattern> -
Hello All,
My requirement is, how to add the Customized Attribute in UME.
I got one solution from SDN. So I have defined custom property in ume.admin.addattrs field.
But it shows input field. I need a check box instead of input field. How to acheive this?
Please help to solve my problem.
Thanks & Regards,
Art.I have a similar requirement. Any ideas?
-
Using AD Custom Attributes in UME
Hello all,
I want to get employee number and First/Last name which are maintained in AD as Custom Attributes.
The question is how to bind UME user attribute to AD Custom Attribute?
In MMC AD Custom Attributes are shown as "Custom Attribute 1", ... "Custom Attribute N".
But what technical name should we use to refer it in UME datasource XML configuration?
<attribute name="EmployeeNumber">
<physicalAttribute name="?CustomAttribute1?"/>
</attribute>
Thanks,
Anton.please check if this help's. We used this for SunOne LDAP, i am assuming it should also work for AD.
http://help.sap.com/saphelp_nw70/helpdata/en/1a/2bee408a63732ae10000000a155106/frameset.htm
http://help.sap.com/saphelp_nw70/helpdata/en/1a/2bee408a63732ae10000000a155106/frameset.htm -
Editing LDAP User attributes from UME interface
Hi Gurus,
We want to develop a solution with user management screens in WD. These screens will provide password reset and unlock functionality for users. Our users are stored in LDAP. Current connection to LDAP is in Read Only manner.
I want to know
1. How to enable the connection from UME to LDAP in read/write manner?
2. What certificates need to be exchanged for write access? if any?
3. What changes needs to be done in config file of UME?
4. Which permissions should be granted for communication user to edit LDAP user attributes?
Even after performing the change to read LDAP in read/write manner, will it be sure: If we lock user from UME, it will lock LDAP user? please comment.
regards
Kedar KulkarniHi,
We are half way into our application between UME and LDAP. We have developed screens and tested in our internal server. In internal landscape, UME is connected to LDAP in read only fashion. So when we try to create User, it gets created in UME.
But when we deploy same application into client landscape, we receive error as below:
No data source feels responsible for principal. Please check the data source configuration
Now we are not sure why this error is getting displayed.
In client landscape there are 2 LDAPs connected to UME, with only one LDAP in read/ write access.
Is there any way we can check which LDAP is being accessed by our code? Is there any concept of Default LDAP?
Any code to access LDAP details will help us lot.
regards
Kedar Kulkarni -
Multi vlaued attribute in IDM Schema Configuration
The IdM docs - states
Optionally, an IDMAttributeConfiguration
can specify whether the attribute is multivalued,
and can provide a display name (currently not used),
and a description.http://docs.sun.com/source/820-2961/A_edit_configObjects.html#wp19336
Does anyone have any idea ... how to specify an multi valued attribute in the IDM Schema Configuration ?
Or how can i have the email attribute configured as multi-valued.you need to have multi='true' in the resource configuration. Something like this:
<AccountAttributeType id='11' name='changedate' syntax='string' mapName='changedate' mapType='string' multi='true'/>
I don't think you can set that through the gui; you have to edit the xml manually
see the post http://forums.sun.com/thread.jspa?forumID=764&threadID=5370337 for more details -
Hi
Is it possible to update attributes e.g Language in UME via security.api ?.
Thanks
DamienDamien,
Lokesh has given good input but user.setLocale("EN"); may not work as such because method setLocale
public boolean setLocale(java.util.Locale locale).
does not accept String parameter.
I tried it following way and it worked for me.
IUserMaint user = UMFactory.getUserFactory().getMutableUser(UMFactory.getUserFactory().getUserByLogonID("userid").getUniqueID());
Locale deLocale = new Locale("de", "DE");
user.setLocale(deLocale);
user.commit();
Obviously, "userid" needs to be replaced with a real User ID.
After this, refresh the browser and all navigation for user mapped to userid will be in German. You can get more information about Locale [here|http://java.sun.com/developer/technicalArticles/J2SE/locale/].
Hope it helps,
Vishwas. -
Adding an element with an attribute to destination schema that doesn't exist on source schema
I have source schema which looks something like below:
source schema
name //attribute
address1 //attribute
address2 //attribute
city //attribute
I need to map it to a destination schema which looks like below:
destination schema
employee //record (repeating element)
fieldname //attribute
type //attribute
After mapping, the xml would look like below:
<employee fieldname= 'name' type='string'>
<employee fieldname= 'address1' type ='string'>
<employee fieldname= 'address2' type ='string'>
<employee fieldname= 'city' type ='string'>
(fieldname exists in source schema, but 'type' doesn't. basing on the fieldname, I add it on the destination schema using ValueMapping functoid )And I am able to do it successfully, but my question is, I need to add a field called 'salary'
of type 'double' to the destination schema similar to the other values
<employee fieldname= 'salary' type ='double'>
But salary doesn't exist in 'source' schema, and it needs to be there in destination schema associated with the attribute 'type='dcouble'' How can I accomplish this? Appreciate any help. thanks!!Hi Anne,
For your requirement, all you need is Table Looping functiod and Table Extractor functiod.
In this example, I am not using the value mapping functiod (you can also use it, but I prefer to make this sample easier for you to understand) so using a “string” as constant.
When you mean by you want
<employee fieldname= 'name' type='string'>
<employee fieldname= 'address1' type ='string'>
<employee fieldname= 'address2' type ='string'> <employee fieldname= 'city' type ='string'>
I assume you’re looking for something like this
<employee fieldname= 'ValueOfName' type='string'>
<employee fieldname= 'ValueOfAddress1' type ='string'>
<employee fieldname= 'ValueOfAddress2' type ='string'>
<employee fieldname= 'ValueOfCity' type ='string'>
Or if you just need field names not the value of the fields, you can still do what you want with the way you do now but using Table Looping functiod and Table Extractor
functiod.
Let me explain this.
Use Table Looping functiod with following parameters:
5 = You need 5 records in output i.e. name, address1,address2,city and salary.
2 = you need 2 columns. i.e. fieldname and type.
Link from 'name' in source schema. Here I have just linked the 'name' from source schema, so this will have VALUE-of-Name element/attribute. Or if you can want just the
field name, you can use the way you’re using to get the field name.
Repeat the above step for all the rest of the fields. I have linked address1, address2 and city.
7<sup>th</sup> parameter is “string” as constant, which I will be passing to “type” attribute in destination. Again you can use value mapping functiod as you
do. If you use value mapping functiod, then rest of the parameter shall be value mapping functiod.
Then I add last two paraters “salary” and “double” as constants, which I will be using to add the new record. Below image show the parameters for Table looping functiond:
Now select the “Configure Table Looping grid” property and map as shown. Give a closer look to the way how this grid has been mapped. Last record in the grid shows the
additional record which you want to add with “salary” and “double”
Now add “Table Extractor functiod”, set its first parameter to “Table looping” and second parameter as “1”
Now another “Table Extractor functiod”, set its first parameter to “Table looping” and second parameter as “2”. Below image show the Table Txtrator functiods parameters:
Now link the Table Looping functiod to “employee” record in destination schema.
Use the above you will get the output as you wanted. Following is the output, note: as mentioned in the fieldName attribute I have the value of the source fields/attributes
since I have used the direct link from soruce in Table Looping functiod parameters, you can use the link which is producing the value for you now for fieldname:
<employee fieldName="name_0" type="string"></employee>
<employee fieldName="address1_1" type="string"></employee>
<employee fieldName="address2_2" type="string"></employee>
<employee fieldName="city_3" type="string"></employee>
<employee fieldName="salary" type="double"></employee>
If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply. -
OID Attributes Disappear After Schema Import
I'm running OID 11.1.1.5, and am importing the schema of another OID instance (10g). I had originially tried to import the whole schema - took all the attributes and object classes and imported them in one ./ldapmodify command via file with the correct format:
output schema:
./ldapsearch -h <> -D <> -w <> -p <> -b cn=subschemaSubentry -s base -v "objectclass=*"
import schema:
./ldapmodify -h <> -D <> -w <> -p <> -c -f <>
the file format looked like so for each attribute and object class:
dn: cn=subschemasubentry
changetype: modify
add: attributetypes
attributetyptes: ( <nnn> NAME ' ' SYNTAX ' ' SINGLE VALUE )
dn: cn=subschemasubentry
changetype: modify
add: objectclasses
objectclasses: ( <nnn> NAME '' SUP tup STRUCTURAL MUST ( ) MAY ( ) )
After running this file I saw the following behavior:
- many of the attempts returned "object / attribute already in use"
- the attributes were no longer viewable in the schema tab
- i could see the object classes that were imported
- the object classes contained entries of the attributes that were supposed to be created
- attributes within the object class contained none of the required values (OID, Syntax, etc)
- when i tried to edit the attributes from within the object classes, it throws an error and all attributes disappear from the objectclass
- OID becomes hosed
I have a full backup of the instance that I revert to while trying to debug this issue. My questions are-
1. Has anyone else run into this?
2. Any idea what the root cause is?
3. If so, how do you recover?
4. Is OID recoverable after this kind of behavior, or is a restore required?Looks like I was able to resolve my issue! Some of the attribute add fields had a SPACE in after the quote in the DESC value.
Rather than:
DESC 'some description'
It had:
DESC ' some description'
Hope that helps another poor soul. This led to major application-wide destruction if not done correctly; very little error checking on the scripts side. -
Use of auxiliary class to add attributes to the schema
I need to add some attributes to the user class.
What are the pros and cons of using an auxiliary class versus adding the attributes directly to user?
Thanks,
Paolo
Paolo Tedesco - http://cern.ch/idmHi,
If you need mandatory attributes for all instances of a class (for whatever reason)
then modifying the built in class may be the way to go. However auxiliary classes are
"cleaner" in that they can be used to group related attributes together and more
flexible in that they can be dynamically (per class instance) or statically linked.
Probably the most relevant reference is:
http://msdn.microsoft.com/en-us/library/cc223213.aspx
One thing to note on that page is:
"The objectClass attribute of objects of class cl does not include the names of
statically linked auxiliary classes or the classes in their superclass chains."
So if you have applications (LDAP browsers, address books etc.) that rely on objectClass
to list attributes that might be an problem. My preference is to leave built in classes alone and modify them through auxiliaries.
Lee Flight -
Restrict the value choice of a attribut in xml schema
how can i restrict an attribute value to a list of value, instead of one value by "fixed" key word? something like "option" key word in html?
thanksSpecify the type of the atribute as a SimpleType, which is an enumeration.
<xs:attribute name="attr1" type="attr1Type"/>
<simpleType name='attr1Type'>
<restriction base='string'>
<enumeration value='value1'>
</enumeration>
<enumeration value='value2'>
</enumeration>
<enumeration value='value3'>
</enumeration>
</restriction>
</simpleType> -
How to Access Custom Attributes created in UME.
Hi All,
I have created a custom attribute in UME by using the config tool, the problem that i was facing is i am unable to access those custom attributes via Iuser Api i.e even though i am using the method getAttributeNamespaces() it is returning all the attributes except the custom attributes that i have created in UME.
Thanks in Advance,
RV.Hi RV,
Use the user.api jar in your appln.
follow these steps in your code:
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
user.getAttribute("com.sap.security.core.usermanagement", "exact name of the custom attribute");
if you are still facing the problem paste your code here for analysis.
Maybe you are looking for
-
We have multiple computers and iPhone devices which I have passed on to other family members, such as my wife. Now she is not able to load apps to her devices, eventhough it appear she is logged into her own iTunes account. How can I setup iTunes c
-
Is it possible to havedrop down lists in cells of a table?
Hi - I have LV7.1 Dev Suite. I would like to create a table that I can have drop-down lists in any given cell of the table. Is there a way to do this with the "table" selection in the lists & tables section of the controls palette? Thanks for any hel
-
my iphone says disabled on my screen. i have only just got it and in have never synced it witth my computer. please can you help
-
Are ref cursors supported in APEX??
Apex version 3.2 ORacle 10G
-
Flipping from PSE8 organizer (or batch)
Hi, I am organizing scans taken of over 1000 slides and some of them were clearly scanned from the wrong side (about 30% of them). Is there a way of flipping the images horizontally from the organiser, or at least of flipping them as a batch job? I h