But if we change the name of one user (rename not recreate), he lost all this properties. When try to execute a report show an error:
Thanks in advance
How are you doing your rename? Because that's where your issue is <s>.
If you're doing it through some GUI interface and that interface doesn't transfer your extended properties on a rename, then that interface has a bug in it <sigh>.
I do some AD coding but don't have an example I can throw in here. Basically, when any consumer queries AD for a user object, it is allowed to say what properties it's interested in retrieving. If it doesn't know about yours and doesn't retrieve them, it probably doesn't clone them along with the rest of the object. (I think, under the covers, a rename likely does a clone-and-delete.)
So you have to write something that does know about your extended properties and write a better rename...
>L<
|||We rename the user in Active directory but i supposed that in some part of reporting services store the previous username, guid or something to refers to the old user. When we use the user!userID functions, reporting services get the old value instead the new value.Our process is:
We have two parameters, one with the user and other with the information to retrieve and send to another queries. Send this two parameters to the web services and retrieve a parameter (a custom property defined in AD) to send in another query.
We use directly in web browser the reporting services. And it is the default configuration of report server web.
Thanks for your patience
|||
>>We rename the user in Active directory
I know that's what you did. I asked you *how* you did this (through what interface).
But, yes, if you're getting the old version when you look at user!userID, it doesn't matter.
I don't see why the report server would be caching the previous user name etc, unless you have put this information in as the credentials of the user to run the report in the report configuration?
Could this possibly be an AD refresh type of problem, instead? IOW, you do the rename and all the domain servers don't know about it?
>L<