- Client satisfaction survey
- Complaints procedure
- In the community
- Panel appointments
- Terms of business
What clients say
- Abduction & children disputes
- Care proceedings & child protection
- Community care
- Divorce or separation
- Family mediation
- Family money
- Mental health & capacity
- Romantic contracts
- Violence in the family
- News & resources
- Access to social housing
- Deposit protection
- Facing possession proceedings
- Housing and support for destitute migrants
- Property in disrepair
- Rent Repayment Orders
Assignment or succession of a tenancy agreement
- Unlawful eviction
- Your rights if you are homeless
Get in Touch
- 020 7426 0400
Tenancies can sometimes be passed from one tenant to another person, depending on the circumstances and your relationship:
- after a tenant has died, then a surviving spouse, partner or relative may be able to take over the tenancy and this is called “succession”; or
- while the tenant is still living, a transfer between household members is called “assignment”.
In both situations, the law is quite complicated and will depend on what sort of tenancy arrangement the tenant has, who the landlord is, when the tenancy was taken out, what the tenancy agreement says and how long the person who hopes to take over the tenancy has been living there.
Legal advice on assignment of a tenancy
In some situations, the tenant is allowed to assign the tenancy to another family member without the landlord needing to consent or agree to the assignment and the process can be dealt with by the drawing up of a deed.
In other situations, the landlord’s consent will be required. Some tenancies cannot be assigned at all, or only to a spouse or partner.
The law is complicated and expert legal advice will be required to work out if a tenancy can be assigned and to draw up the necessary documentation.
Legal advice on succession of a tenancy
If a landlord considers that there are no persons in the household who are entitled to succeed to the tenancy after the death of the tenant, they may serve a notice and then start possession proceedings for eviction.
Dealing with a bereavement of a loved one can be made even harder to cope with if you are also worried about losing your home.
Our team have extensive experience in advising bereaved family members about their rights to succeed to a relatives’ tenancy and can help at all stages including initial advice, putting the case to the landlord prior to proceedings and then representation in proceedings if necessary.
Funding the cost of legal advice
- In respect of assignment – Legal Aid is not available for advice and representation and these cases will need to be paid for privately. We are able to offer fixed fee packages for this work.
- In respect of succession rights – Legal Aid is available (subject to your means and the merits of the case) for advice and representation after a landlord has served a notice and has indicated that they intend to bring possession proceedings.
If no notice has been served, then legal aid is not available, and we will have to consider other ways of funding your case including a fixed fee package if appropriate.
Contact us for expert legal advice
Based near Liverpool Street station in East London, we advise people right across London and beyond. We offer a comprehensive service, from initial advice to representation at court. The housing team is a member of the Housing Law Practitioners Association.
Contact our housing and property lawyers today, we are ready and waiting to help.
Who to contact
Lou crisfield, rajea sultana, jasper blumenthal, kate downing, trainee solicitor.
Really happy with the service I received. No hidden costs, never dealt with a solicitor before but I’d say the price was worth it. A consultation at the beginning and I was kept informed of the process. Thanks again Lou & Kate Housing law client advised by Lou Crisfield and Kate Downing
The best thing about working with Miles & Partners was the fact that Rajea was so patient and attentive to all my concerns. She was honest but didn’t dismiss my feelings at all. Working with Rajea was such a blessing to me and family. If it wasn’t for her I don’t think we would have achieved the outcome we did and for that I’m so grateful. Housing law client, advised by Rajea Sultana
I cannot express our gratitude enough for how much Miles & Partners helped us. Jasper was the nicest and most patient young man who was willing to listen. Honestly, I cannot not thank him enough. Finally, by the end of the day I received a call from Rajea Sultana that she would like to take the case. As soon as I first spoke with Rajea, her initiative and energy immediately made me feel better and gave me some hope. Most importantly, Rajea is the nicest and most helpful person I have met in legal circles. Her professional, but also human approach truly makes a difference. She helped us with the case, she listened, and she was always available. Simply put – if you ever need help, Rajea is your person! Anu, housing law client advised by Rajea Sultana and Jasper Blumenthal
“Amazing service. Definitely will recommend. Rajea was fantastic at dealing with our housing case and we reached an extremely positive outcome.” Runa Begum
“God bless you for the good job you are doing for us.” Samuel Afrifa
“Thank you so much for the effort you made to fight for me during my housing issues. I really appreciate it as you put a smile on my face.” Anonymous trainee nurse
Assignment of Lease
Jump to section, need help with an assignment of lease.
Post Your Project (It's Free)
Get Bids to Compare
Hire Your Lawyer
What is an Assignment of Lease?
The assignment of lease is a title document that transfers all rights possessed by a lessee or tenant to a property to another party. The assignee takes the assignor’s place in the landlord-tenant relationship.
You can view an example of a lease assignment here .
How Lease Assignment Works
In cases where a tenant wants to or needs to get out of their lease before it expires, lease assignment provides a legal option to assign or transfer rights of the lease to someone else. For instance, if in a commercial lease a business leases a place for 12 months but the business moves or shuts down after 10 months, the person can transfer the lease to someone else through an assignment of the lease. In this case, they will not have to pay rent for the last two months as the new assigned tenant will be responsible for that.
However, before the original tenant can be released of any responsibilities associated with the lease, other requirements need to be satisfied. The landlord needs to consent to the lease transfer through a “License to Assign” document. It is crucial to complete this document before moving on to the assignment of lease as the landlord may refuse to approve the assignment.
Difference Between Assignment of Lease and Subletting
A transfer of the remaining interest in a lease, also known as assignment, is possible when implied rights to assign exist. Some leases do not allow assignment or sharing of possessions or property under a lease. An assignment ensures the complete transfer of the rights to the property from one tenant to another.
The assignor is no longer responsible for rent or utilities and other costs that they might have had under the lease. Here, the assignee becomes the tenant and takes over all responsibilities such as rent. However, unless the assignee is released of all liabilities by the landlord, they remain responsible if the new tenant defaults.
A sublease is a new lease agreement between the tenant (or the sublessor) and a third-party (or the sublessee) for a portion of the lease. The original lease agreement between the landlord and the sublessor (or original tenant) still remains in place. The original tenant still remains responsible for all duties set under the lease.
Here are some key differences between subletting and assigning a lease:
- Under a sublease, the original lease agreement still remains in place.
- The original tenant retains all responsibilities under a sublease agreement.
- A sublease can be for less than all of the property, such as for a room, general area, portion of the leased premises, etc.
- Subleasing can be for a portion of the lease term. For instance, a tenant can sublease the property for a month and then retain it after the third-party completes their month-long sublet.
- Since the sublease agreement is between the tenant and the third-party, rent is often negotiable, based on the term of the sublease and other circumstances.
- The third-party in a sublease agreement does not have a direct relationship with the landlord.
- The subtenant will need to seek consent of both the tenant and the landlord to make any repairs or changes to the property during their sublease.
Here is more on an assignment of lease here .
Parties Involved in Lease Assignment
There are three parties involved in a lease assignment – the landlord or owner of the property, the assignor and the assignee. The original lease agreement is between the landlord and the tenant, or the assignor. The lease agreement outlines the duties and responsibilities of both parties when it comes to renting the property. Now, when the tenant decides to assign the lease to a third-party, the third-party is known as the assignee. The assignee takes on the responsibilities laid under the original lease agreement between the assignor and the landlord. The landlord must consent to the assignment of the lease prior to the assignment.
For example, Jake is renting a commercial property for his business from Paul for two years beginning January 2013 up until January 2015. In January 2014, Jake suffers a financial crisis and has to close down his business to move to a different city. Jake doesn’t want to continue paying rent on the property as he will not be using it for a year left of the lease. Jake’s friend, John would soon be turning his digital business into a brick-and-mortar store. John has been looking for a space to kick start his venture. Jake can assign his space for the rest of the lease term to John through an assignment of lease. Jake will need to seek the approval of his landlord and then begin the assignment process. Here, Jake will be the assignor who transfers all his lease related duties and responsibilities to John, who will be the assignee.
You can read more on lease agreements here .
Image via Pexels by RODNAE
Assignment of Lease From Seller to Buyer
In case of a residential property, a landlord can assign his leases to the new buyer of the building. The landlord will assign the right to collect rent to the buyer. This will allow the buyer to collect any and all rent from existing tenants in that property. This assignment can also include the assignment of security deposits, if the parties agree to it. This type of assignment provides protection to the buyer so they can collect rent on the property.
The assignment of a lease from the seller to a buyer also requires that all tenants are made aware of the sale of the property. The buyer-seller should give proper notice to the tenants along with a notice of assignment of lease signed by both the buyer and the seller. Tenants should also be informed about the contact information of the new landlord and the payment methods to be used to pay rent to the new landlord.
You can read more on buyer-seller lease assignments here .
Get Help with an Assignment of Lease
Do you have any questions about a lease assignment and want to speak to an expert? Post a project today on ContractsCounsel and receive bids from real estate lawyers who specialize in lease assignment.
Meet some of our Assignment of Lease Lawyers
Before attending law school, I had a prior career in business performance reporting. This experience differentiates me from other attorneys. I can readily read, interpret, and synthesize financial reporting. I also have a passion for legal research and writing.
Owner and operator of Meek Law Firm, PC. Meek Law Firm provides comprehensive business law representation, precise and informed representation for real estate transactions in the commercial and residential markets of North and South Carolina and efficient succession and estate planning for business owners and individuals.
My legal practice is focused on business transactions like general corporate matters, fundraising, technology contract negotiation, blockchain, crypto or token analysis, and others. I hope to be a good asset to you and looking forward to finding out how I can be of help!
Attorney with a wide-range of experience
Christopher Nuneviller has practiced in the securities, venture capital, corporate and emerging business sectors, and as a contract-advisor to the federal government, a federal government senior level executive, and as Army Judge Advocate. Like you, he also he is a partner in other business ventures and faces the same pressure to succeed, be profitable, and stay sane, all while making his clients, employees, family and business partners happy. As the managing partner for Philadelphia's MNB Meridian Law, Ltd., his focus is on assisting small and mid-sized businesses grow and thrive. As a business generalist, Christopher provides advice and counsel to businesses, their owners, investors and shareholders on matters ranging from formation, organization, governance, routine and special operations, and growth toward IPO. Christopher is also a former U.S. Army Judge Advocate having served seven years in Washington, D.C. where he gained significant experience with "above the fold" matters of great import and an unhealthy insight into the internal workings of the "beltway" underbelly. Mr. Nuneviller is admitted to practice in the Commonwealth of Pennsylvania, and before the Supreme Court of the United States, the Court of Federal Claims, and the Court of Appeals for the Armed Forces.
I've been a Real Estate attorney for over 25 years. I handle real estate transactions, commercial collections, foreclosures, replevins, landlord tenant issues and small business matter.
Business Law - Criminal Defense - Immigration
Find the best lawyer for your project
Real estate lawyers by top cities.
- Austin Real Estate Lawyers
- Boston Real Estate Lawyers
- Chicago Real Estate Lawyers
- Dallas Real Estate Lawyers
- Denver Real Estate Lawyers
- Houston Real Estate Lawyers
- Los Angeles Real Estate Lawyers
- New York Real Estate Lawyers
- Phoenix Real Estate Lawyers
- San Diego Real Estate Lawyers
- Tampa Real Estate Lawyers
Assignment of Lease lawyers by city
- Austin Assignment of Lease Lawyers
- Boston Assignment of Lease Lawyers
- Chicago Assignment of Lease Lawyers
- Dallas Assignment of Lease Lawyers
- Denver Assignment of Lease Lawyers
- Houston Assignment of Lease Lawyers
- Los Angeles Assignment of Lease Lawyers
- New York Assignment of Lease Lawyers
- Phoenix Assignment of Lease Lawyers
- San Diego Assignment of Lease Lawyers
- Tampa Assignment of Lease Lawyers
- Addendum to Lease
- ALTA Statement
- Apartment Lease
- Apartment Rental Agreement
- Boundary Line Agreement
- Brokerage Agreement
- Building Contract
- Building Lease
- Buyer Agency Agreement
- Buyer Broker Agreement
other helpful articles
- How much does it cost to draft a contract?
- Do Contract Lawyers Use Templates?
- How do Contract Lawyers charge?
- Business Contract Lawyers: How Can They Help?
- What to look for when hiring a lawyer
Quick, user friendly and one of the better ways I've come across to get ahold of lawyers willing to take new clients.
Contracts Counsel was incredibly helpful and easy to use. I submitted a project for a lawyer's help within a day I had received over 6 proposals from qualified lawyers. I submitted a bid that works best for my business and we went forward with the project.
I never knew how difficult it was to obtain representation or a lawyer, and ContractsCounsel was EXACTLY the type of service I was hoping for when I was in a pinch. Working with their service was efficient, effective and made me feel in control. Thank you so much and should I ever need attorney services down the road, I'll certainly be a repeat customer.
I got 5 bids within 24h of posting my project. I choose the person who provided the most detailed and relevant intro letter, highlighting their experience relevant to my project. I am very satisfied with the outcome and quality of the two agreements that were produced, they actually far exceed my expectations.
How It Works
Post Your Project
Get Free Bids to Compare
Hire Your Lawyer
Want to speak to someone?
Get in touch below and we will schedule a time to connect!
Find lawyers and attorneys by city
Navigating the assignment of a residential lease
A landlord can assign his leases to a new buyer of his building. Likewise, a tenant may be able to assign his lease if he needs to relocate. Find out how to assign your lease and what you can do to protect yourself when doing so.
updated September 1, 2023 · 3min read
Assignment of lease by the tenant
Assignment of lease vs. sublease, assignment of lease by the landlord.
As a tenant, you may want to get out of your residential lease without paying the remaining rent. Likewise, if you're a landlord and sell your rental property, the buyer must now collect rent from the tenants, who may have no idea you sold the property. In both situations, assignment of a lease with a release for the tenant and assignment of leases with notice by the landlord accomplish these goals.
If you're the tenant and want to leave before the end of your lease term, you may be able to assign your lease to a third party if the landlord doesn't let you out of the lease. The third party then becomes the new tenant, who is bound by the terms of the original lease and pays rent to the landlord.
Most often, the lease won't permit assignment without the landlord's approval, but leases often state that the landlord cannot unreasonably withhold consent. As long as you produce a tenant who's shown a history of payment under prior leases and has been a model tenant, a landlord should consent to assignment.
The assignment of lease form should include places for the tenant-assignor, the new tenant-assignee, and the landlord to sign. If the master lease allows assignment, then the tenant doesn't need the landlord's permission; the tenant can sign an assignment of lease agreement without the landlord's signature.
If the landlord allows an assignment of the lease, you, as the tenant, also want him to sign a release stating that you're not responsible for the new tenant's failure to pay or for any damage she causes. Without such a release, you may still be liable for both.
When you, as the tenant, assign the lease, you sign an agreement that either reads “Assignment of Lease," “Lease Assumption Agreement," or “Assignment and Assumption Agreement." An assumption of the lease means that the new tenant assumes your obligations, such as paying rent and keeping the apartment in good condition.
An assignment of a lease transfers the tenant's entire rights in the property to a third party. With a sublease, on the other hand, the tenant transfers only a portion of the remaining lease. For example, if the original tenant has six months remaining on his lease and he gives the entire six months to a third party, the tenant is permanently assigning his rights to live on the property to the third party. If, however, the tenant allows that third party to stay at the premises for only three months, and the tenant intends to return after three months, he is subleasing the premises.
A landlord can assign the right to collect rent to someone who has purchased the property. An assignment of lease from the seller to the buyer allows the new landlord to collect rent from any and all current tenants in the building. The language in the landlord's assignment of lease agreement can include assignment of security deposits, if the parties agree to it. An assignment of leases by the landlord to the buyer affords protection to the buyer so he can collect rent.
An assignment of leases by the landlord to the buyer is meaningless if tenants aren't aware the landlord sold the property, which is why it's important for the assignor-landlord to give tenants proper notice. A notice of assignment of lease, which is a form signed by both the assignor-landlord and the assignee, or new landlord, is one way to give notice. Another way is to send a letter on the landlord's letterhead. Either way, the notice must include the new landlord's address and how rent is to be paid.
Both landlords and tenants who become assignors should sign a formal assignment of lease agreement, which an online service provider can prepare for you. If you're the tenant who has assigned your lease, try to get a release or you'll still be liable to the landlord. If you're the landlord, make sure you can count on the new tenant to pay the rent before you release the primary tenant from his obligations under the lease.
by Ronna L. DeLoe, Esq.
Ronna L. DeLoe is a freelance writer and a published author who has written hundreds of legal articles. She does...
You may also like
What does 'inc.' mean in a company name?
'Inc.' in a company name means the business is incorporated, but what does that entail, exactly? Here's everything you need to know about incorporating your business.
October 9, 2023 · 10min read
How to get an LLC and start a limited liability company
Considering an LLC for your business? The application process isn't complicated, but to apply for an LLC, you'll have to do some homework first.
October 25, 2023 · 11min read
What is a power of attorney (POA)? A comprehensive guide
Setting up a power of attorney to make your decisions when you can't is a smart thing to do because you never know when you'll need help from someone you trust.
October 23, 2023 · 14min read
Extend, enrich, and customize Copilot for Microsoft 365
Plugins and Microsoft Graph connectors expand your organization's AI-powered productivity, skills, and creativity.
Connect your apps to Copilot
Build a new plugin or update an existing Teams message extension or Power Platform connector to increase users' productivity across daily tasks and workflows.
Ground Copilot in your organization's content
Connect data sources with Microsoft Graph connectors to bring more of your organization's content and context to Copilot for Microsoft 365, further increasing the richness and relevance of its responses.
Build your own copilot
Explore the low and pro code options we offer for developers who want to build their own copilots, including Microsoft Copilot Studio, Azure OpenAI studio, and more.
Get started with Microsoft Copilot Studio (public preview)
Microsoft Copilot Studio enables organizations to extend Copilot for Microsoft 365 with control over the conversation.
Build with Azure OpenAI and Teams AI library
Quickly develop generative AI experiences with a diverse set of prebuilt and curated models from OpenAI, Meta, and beyond. Deploy easily on Teams with the Teams AI library.
Join the Microsoft 365 Technology Adoption Program (TAP)
Learn about what's on our product roadmaps, share feedback on work in development, and engage with Microsoft 365 product groups.
Free Lease Assignment Agreement Template for Microsoft Word
Download this free Lease Assignment Agreement template as a Word document to easily assign a lease to another party with consent from the landlord.
Lease Assignment Agreement
THIS ASSIGNMENT OF TENANCY AGREEMENT dated this [Insert date]
[Insert name] (the “Assignor”)
[Insert name] (the “Assignee”)
A. This is an agreement (the “Assignment”) to assign a residential tenancy agreement in real property according to the terms specified below.
B. The Assignor wishes to assign and transfer to the Assignee that tenancy agreement (the “Tenancy Agreement”) dated June 11, 2020, and executed by the Assignor as tenant and by _________________________ as landlord (the “Landlord”).
IN CONSIDERATION OF the Assignor agreeing to assign and the Assignee agreeing to assume the Tenancy Agreement for the Premises, and other valuable consideration, the receipt and sufficiency of which is hereby acknowledged, both parties agree to keep, perform and fulfill the promises, conditions and agreements below:
1. The Tenancy Agreement governs the rental of the following described premises (the “Premises”) to the Assignor: ______________________________________________
Assigned Tenancy Agreement
2. The Assignor assigns and transfers to the Assignee all of the Assignor’s right, title, and interest in and to the Tenancy Agreement and the Premises, subject to all the conditions and terms contained in the Tenancy Agreement.
3. This Assignment takes effect on June 11, 2020 (the “Effective Date”), and continues until the present term of the Tenancy Agreement expires on June 11, 2020.
4. The Assignor covenants that:
a. the Assignor is the lawful and sole owner of the interest assigned under this Assignment; b. this interest is free from all encumbrances; and c. the Assignor has performed all duties and obligations and made all payments required under the terms and conditions of the Tenancy Agreement.
Breach of Tenancy Agreement by Assignee
5. Consent to this Assignment will not discharge the Assignor of its obligations under the Tenancy Agreement in the event of a breach by the Assignee.
6. In the event of a breach by the Assignee, the Landlord will provide the Assignor with written notice of this breach and the Assignor will have full rights to commence all actions to recover possession of the Premises (in the name of the Landlord, if necessary) and retain all rights for the duration of the Tenancy Agreement provided the Assignor will pay all accrued rents and cure any other default.
7. It is the intention of the parties that this Assignment, and all suits and special proceedings under this Assignment, be construed in accordance with and governed, to the exclusion of the law of any other forum, by the laws of the State of New South Wales, without regard to the jurisdiction in which any action or special proceeding may be instituted.
8. This Assignment incorporates and is subject to the Tenancy Agreement, a copy of which is attached hereto, and which is hereby referred to and incorporated as if it were set out here at length. The Assignee agrees to assume all of the obligations and responsibilities of the Assignor under the Tenancy Agreement.
9. This Assignment will be binding upon and inure to the benefit of the parties, their successors, assigns, personal representatives, beneficiaries, executors, administrators, and heirs, as the case may be.
10. All rents and other charges accrued under the Tenancy Agreement prior to the Effective Date will be fully paid by the Assignor, and by the Assignee after the Effective Date. The Assignee will also be responsible for assuming and performing all other duties and obligations required under the terms and conditions of the Tenancy Agreement after the Effective Date.
11. There will be no further assignment of the Tenancy Agreement without the prior written consent of the Landlord.
IN WITNESS WHEREOF the Assignor and Assignee have duly affixed their signatures under hand and seal on this [Insert date]
SIGNED BY THE ASSIGNOR
_____________________________ Assignor: _________________________
in the presence of (Name of witness) _______________________
(Signature of witness) _____________________________
SIGNED BY THE ASSIGNEE _____________________________ Assignee: _______________________
in the presence of (Name of witness) ___________________
(Signature of witness) _______________________________
CONSENT OF LANDLORD
The Landlord in the above Assignment of Tenancy Agreement executed on [Insert date] consents to that Assignment. The Landlord also agrees to the Assignee assuming after [Insert date] the payment of rent and performance of all duties and obligations as provided in the Tenancy Agreement. Dated: [Insert date]
Advertising agreement, arbitration agreement, barter agreement, business sale agreement.
404 Not found
- Ask a Question
- Write a Blog Post
- Login / Sign-up
How to Use Application Roles in SAP Build Apps: A Workaround Solution
In this blog post, we will explore a workaround solution for using application roles in SAP Build Apps which is not supported so far. We will see an example of implementation that adapts UI components of a Web App based on the user role, thereby avoiding the need to create a separate Web App for each user role in SAP Build Apps.
In a previous post , we created a simple web app with SAP Build Apps, which connects to a REST API via a destination in the Business Technology Platform (BTP) to read and display records. The connected user can only see their data. However, our backend service supports two roles: a normal user that can only get their records, and an admin user that can retrieve records of all users.
Our goal now is to adjust the web app so that an admin user can choose to view all records. The web app should verify if the connected user has the application admin role and display the appropriate UI components accordingly.
Implementation in SAP Build Apps:
We assume that we will be having two roles: Administrator and User. Here’s how we adjusted the UI in SAP Build Apps:
- Add a new data endpoint: Currently, we have one data endpoint called “myReturns” that returns only the connected user records. To get all users’ records, we should query a different endpoint called “allReturns” . We then add it in the Data tab the same way we’ve done with “myReturns” . We also add the corresponding data variable in the records list page to use it in that view.
Adding new REST API Integration in SAP Build Apps
- Add UI components for the admin user: In our case, we added a switch button in the returnable list screen. This button should only appear for the admin user, and if switched on, the list should refresh with the records of all users.
Adjust UI component visibility based on user roles
Based on the value of “seeAll” variable, it will be bound to either the “myReturn” or the “AllReturn” data collection.
- Build and deploy the app: With these steps, the application should be ready to go!
Adding Roles to the Application UAA Instance
The deployment will create a UAA (Authorization and Trust Management service) instance that handles user authorizations for the web app. The created instance does not contain any scope or role, so we’ll need to enhance it.
We’ve created an “xs-security.json” file in which we could define the scopes and roles for our UI app. For example, we defined two scopes: `Administrator` and `User`, and two corresponding role templates: `myPackAdmin` and `myPackUser`.
For your case, you can use the same file content and customize scopes and roles according to your requirements. Simply replace the xsappname property with your app name. To locate the app name in the BTP cockpit after deployment, navigate to instances and subscriptions. Look for instances starting with appgyver-web-app-xx-uaa, and copy the name excluding the -uaa suffix.
Locate the created uaa instance for the web application
To update the existing “appgyver-web-app-xx-uaa” instance with our new configuration, we use the following command line in the terminal:
cf update-service appgyver-web-app-22991-uaa -p application -c xs-security.json.
For your application, you need to replace “appgyver-web-app-xx-uaa” with your UAA instance name and provide the correct directory path where you have created the xs-security.json file.
Cloud Foundry CLI must be installed to execute the command line.
Assigning Roles to Users
To see the switch button, the admin role must be assigned to your user. To do this, we created a role collection and did assign it to the desired user from the subaccount in the BTP cockpit.
You can find the new roles under Security > Roles. We created a new role collection, such as “myPackAdmin,” and included both the backend admin role and the new UI admin role. we assigned this role collection to the user.
New Role Collection creation from the SAP BTP Cockpit
Now, when you log in as an admin, you should see the switch button. You can switch it on to see all user records. You may need to logout and login again or test in a different browser so that the new role assignment is considered.
Remember, in preview mode, your user won’t have the roles, so it will only work on the deployed version of the web app
Switch button appear for the connected admin user
And there you have it! A simple workaround to deal with different user roles in your SAP Build Apps until the feature becomes natively available. Hope you find this solution helpful in avoiding duplications in UI creation.
That is a really nice blog 👏 I'm going to try this out.
Check how we used a cap service to check roles in SAP Build Apps, and actually used the roles for the database to also protect the data itself: https://developers.sap.com/group.build-apps-cap.html
I believe there is a roadmap item to make this simpler: https://roadmaps.sap.com/board?PRODUCT=73554900100800004334&range=CURRENT-LAST#;INNO=C1FBB5A935A51EDDA7CE79AA5AB99A26
- Share Right click and copy the link to share this comment
Enter the destination URL
Or link to existing content