The detail of how that will be done will be directed by a code of practice, under which authorities will be allowed to consult users, practitioners and the voluntary sector to ensure that any action that is taken is appropriate to the particular level of need.