Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3354

Re: DISABLE USER FROM CHANGING PASSWORD

$
0
0

Hi Mahj

 

You can use the  SBO_SP_TransactionNotification to block users from changing their password. Just modify the Stored Procedure and insert the following text where it says ADD YOUR CODE HERE:

 

     declare @passchanged int

 

     if (@object_type = '12' and @transaction_type = 'U')

     select @passchanged = T0.USERID FROM OUSR T0 WHERE T0.USERID =      @list_of_cols_val_tab_del

 

     if @passchanged >  1

     begin

     select @error = 999

     select @error_message = 'You are not permitted to change your password'

     end

 

The @passchanged > 1 will exclude manager who's id should be 1.

 

let me know if you get stuck with this.

 

Kind regards

 

Peter Juby


Viewing all articles
Browse latest Browse all 3354

Trending Articles